]> source.dussan.org Git - rspamd.git/commitdiff
Ignore empty from in settings.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 13 May 2011 15:44:59 +0000 (19:44 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 13 May 2011 15:44:59 +0000 (19:44 +0400)
src/settings.c

index 05757a61c4cd65751ddf6461f0fbb0b2a4d76435..6dd6cd3b05529c040d3059320e8efcfe62fd3ceb 100644 (file)
@@ -407,7 +407,7 @@ check_bwhitelist (struct worker_task *task, struct rspamd_settings *s, gboolean
 {
        gchar                           *src_email = NULL, *src_domain = NULL, *data;
 
-       if (task->from != NULL) {
+       if (task->from != NULL && *task->from != '\0') {
                src_email = task->from;
        } else {
                return FALSE;