From: michael Date: Fri, 17 Jul 2015 12:01:33 +0000 (+0000) Subject: - scan.c:scan_connect(): style corrections X-Git-Tag: 1.1.0~6 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=4e471be984b040e4af0d214e186c730287c4761e;p=hopm.git - scan.c:scan_connect(): style corrections git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.1.x@6293 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/scan.c b/src/scan.c index fee1f19..c769f07 100644 --- a/src/scan.c +++ b/src/scan.c @@ -319,16 +319,13 @@ scan_connect(const char *user[], const char *msg) log_printf("SCAN -> Invalid IPv4 address '%s'!", user[3]); return; } - else + + if (check_neg_cache(ip.sin_addr.s_addr)) { - if (check_neg_cache(ip.sin_addr.s_addr)) - { - if (OPT_DEBUG) - log_printf("SCAN -> %s!%s@%s (%s) is negatively cached. " - "Skipping all tests.", user[0], user[1], user[2], - user[3]); - return; - } + if (OPT_DEBUG) + log_printf("SCAN -> %s!%s@%s (%s) is negatively cached. Skipping all tests.", + user[0], user[1], user[2], user[3]); + return; } } @@ -345,14 +342,14 @@ scan_connect(const char *user[], const char *msg) return; } - /* create scan_struct */ + /* Create scan_struct */ ss = scan_create(user, msg); /* Store ss in the remote struct, so that in callbacks we have ss */ ss->remote->data = ss; /* Start checking our DNSBLs */ - if (LIST_SIZE(OpmItem->blacklists) > 0) + if (LIST_SIZE(OpmItem->blacklists)) dnsbl_add(ss); /* Add ss->remote to all matching scanners */