aboutsummaryrefslogtreecommitdiffstats
path: root/src/settings.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-13 19:44:59 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-13 19:44:59 +0400
commit610afb87562429d72c2fce6c3c294afaf001b85c (patch)
tree6ecd9ed703054fd05381756a926768a7ccbff5e9 /src/settings.c
parent4c4cdd54fbc5afde43e8ff18090c10dd60e06e0a (diff)
downloadrspamd-610afb87562429d72c2fce6c3c294afaf001b85c.tar.gz
rspamd-610afb87562429d72c2fce6c3c294afaf001b85c.zip
Ignore empty from in settings.
Diffstat (limited to 'src/settings.c')
-rw-r--r--src/settings.c2
1 files changed, 1 insertions, 1 deletions
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;