]> source.dussan.org Git - rspamd.git/commitdiff
Avoid gmime asserts if no recipients are passed from MTA.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 21 Jan 2011 15:33:27 +0000 (18:33 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 21 Jan 2011 15:33:27 +0000 (18:33 +0300)
src/expressions.c

index 21409c81e44ace45284d80d66869eb901f5991fa..24540b44c41c568c884076999f74f8e0cb1b0cdf 100644 (file)
@@ -1406,6 +1406,9 @@ rspamd_recipients_distance (struct worker_task *task, GList * args, void *unused
                return FALSE;
        }
 
+       if (!task->rcpts) {
+               return FALSE;
+       }
        num = internet_address_list_length (task->rcpts);
        if (num < MIN_RCPT_TO_COMPARE) {
                return FALSE;