From bc3a899af20293e0c767428465346d820d316906 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 6 Jan 2015 13:42:07 +0000 Subject: [PATCH] - dnsbl.c:dnsbl_report(): removed test on ss->ip which cannot be NULL git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5317 82007160-df01-0410-b94d-b575c5fd34c7 --- src/dnsbl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dnsbl.c b/src/dnsbl.c index 442b9aa..945e8d8 100644 --- a/src/dnsbl.c +++ b/src/dnsbl.c @@ -31,6 +31,7 @@ along with this program; if not, write to the Free Software #include #include #include +#include #include "compat.h" #include "config.h" @@ -242,8 +243,7 @@ dnsbl_report(struct scan_struct *ss) char buf[4096], cmdbuf[512]; FILE *fp; - if (ss->ip == NULL) - return; + assert(ss->ip); if (EmptyString(OpmItem->dnsbl_to) || EmptyString(OpmItem->dnsbl_from) || EmptyString(OpmItem->sendmail)) return; -- 2.30.2