- dnsbl.c:dnsbl_report(): removed test on ss->ip which cannot be NULL
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 6 Jan 2015 13:42:20 +0000 (13:42 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 6 Jan 2015 13:42:20 +0000 (13:42 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5318 82007160-df01-0410-b94d-b575c5fd34c7

src/dnsbl.c

index 442b9aa76114f76c8d18e685cea1c6c6dd74db55..945e8d8120981bd93a77961436965bb32aa8a468 100644 (file)
@@ -31,6 +31,7 @@ along with this program; if not, write to the Free Software
 #include <arpa/inet.h>
 #include <time.h>
 #include <errno.h>
+#include <assert.h>
 
 #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;