From: Vsevolod Stakhov Date: Fri, 13 May 2011 15:44:59 +0000 (+0400) Subject: Ignore empty from in settings. X-Git-Tag: 0.3.13~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=610afb87562429d72c2fce6c3c294afaf001b85c;p=rspamd.git Ignore empty from in settings. --- diff --git a/src/settings.c b/src/settings.c index 05757a61c..6dd6cd3b0 100644 --- a/src/settings.c +++ b/src/settings.c @@ -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;