diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-01 15:27:00 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-01 15:27:00 +0400 |
commit | 970556f946ee516028d2c338f59bb5dfc2304702 (patch) | |
tree | 233794514d3099ec0fcc071ce47e045093a473a2 /src/expressions.c | |
parent | b53f8a8029384efcbc154971d7fbeed7f4d09d82 (diff) | |
download | rspamd-970556f946ee516028d2c338f59bb5dfc2304702.tar.gz rspamd-970556f946ee516028d2c338f59bb5dfc2304702.zip |
* Fix issue with group addresses
Diffstat (limited to 'src/expressions.c')
-rw-r--r-- | src/expressions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c index 3f7a5d984..73db179fe 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -1179,7 +1179,7 @@ rspamd_recipients_distance (struct worker_task *task, GList *args) while (cur) { addr = internet_address_list_get_address (cur); ar[i].name = memory_pool_strdup (task->task_pool, internet_address_get_addr (addr)); - if ((c = strchr (ar[i].name, '@')) != NULL) { + if (ar[i].name != NULL && (c = strchr (ar[i].name, '@')) != NULL) { *c = '\0'; ar[i].addr = c + 1; } |