aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-20 19:11:49 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-20 19:11:49 +0300
commit3d7650fc497c779e7ca0abc78310250d057f0301 (patch)
treeb8abe0afe4c751729fec4996b1e9db9b4f1bd0e4 /src/plugins/surbl.c
parentea1da6a43cf4f6bfcc23722a05baaae203a00db4 (diff)
downloadrspamd-3d7650fc497c779e7ca0abc78310250d057f0301.tar.gz
rspamd-3d7650fc497c779e7ca0abc78310250d057f0301.zip
More cleanups and fixes for compiler warnings.0.4.6
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index b1f51b7fc..fe0c1d6de 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -514,7 +514,7 @@ format_surbl_request (memory_pool_t * pool, f_str_t * hostname, struct suffix_it
/* Check for numeric expressions */
if (is_numeric && dots_num == 3) {
/* This is ip address */
- if ((suffix->options & SURBL_OPTION_NOIP) != 0) {
+ if (suffix != NULL && (suffix->options & SURBL_OPTION_NOIP) != 0) {
/* Ignore such requests */
msg_info ("ignore request of ip url for list %s", suffix->symbol);
return NULL;