if(fdns_errno == FDNS_ERR_NONE)
{
/* Only report it if no other scans have found positives yet. */
- if(!ss->positive && (ss->manual_target == NULL))
+ if(ss->manual_target == NULL)
scan_positive(ss);
dnsbl_log_positive(ss, res->lookup, (unsigned char)res->text[3]);
}
if(ss->manual_target == NULL)
{
+ /* kline and close scan */
scan_positive(ss);
+
/* Report to blacklist */
dnsbl_report(ss);
void scan_positive(struct scan_struct *ss)
{
node_t *node;
-
OPM_T *scanner;
+ /* If already a positive, don't kline/close again */
+ if(ss->positive)
+ return;
+
/* Format KLINE and send to IRC server */
scan_irckline(ss);