302 |
|
if (OPT_DEBUG >= 2) |
303 |
|
log_printf("SCAN -> Initializing negative cache"); |
304 |
|
|
305 |
< |
nc_init(&nc_head); |
305 |
> |
negcache_init(); |
306 |
|
} |
307 |
|
} |
308 |
|
|
341 |
|
if (OptionsItem->negcache) |
342 |
|
{ |
343 |
|
struct sockaddr_in ip; |
344 |
< |
|
344 |
> |
/* TBC: we currently only do ipv4 */ |
345 |
|
if (inet_pton(AF_INET, user[3], &ip.sin_addr) <= 0) |
346 |
|
{ |
347 |
|
log_printf("SCAN -> Invalid IPv4 address '%s'!", user[3]); |
348 |
|
return; |
349 |
|
} |
350 |
|
|
351 |
< |
if (check_neg_cache(ip.sin_addr.s_addr)) |
351 |
> |
if (check_neg_cache(user[3])) |
352 |
|
{ |
353 |
|
if (OPT_DEBUG) |
354 |
|
log_printf("SCAN -> %s!%s@%s (%s) is negatively cached. Skipping all tests.", |