ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/scan.c
(Generate patch)

Comparing hopm/trunk/src/scan.c (file contents):
Revision 7005 by michael, Fri Jan 1 00:06:56 2016 UTC vs.
Revision 7815 by michael, Wed Oct 19 19:50:47 2016 UTC

# Line 302 | Line 302 | scan_init(void)
302      if (OPT_DEBUG >= 2)
303        log_printf("SCAN -> Initializing negative cache");
304  
305 <    nc_init(&nc_head);
305 >    negcache_init();
306    }
307   }
308  
# Line 341 | Line 341 | scan_connect(const char *user[], const c
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.",

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)