From: michael Date: Tue, 6 Jan 2015 13:42:20 +0000 (+0000) Subject: - dnsbl.c:dnsbl_report(): removed test on ss->ip which cannot be NULL X-Git-Tag: 1.1.0beta1~196 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=5267025bff98b0490e8323a87c105023a7d9751b;p=hopm.git - dnsbl.c:dnsbl_report(): removed test on ss->ip which cannot be NULL git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5318 82007160-df01-0410-b94d-b575c5fd34c7 --- 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;