Changeset 2158

Show
Ignore:
Timestamp:
03/21/08 00:48:42 (9 months ago)
Author:
mbr
Message:

bugfix to skip non-resolved IP addresses (bug report by Albert Whale)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • psad/trunk/psad

    r2156 r2158  
    39693969            $dl          = $2; 
    39703970            $opt_criteria = $3; 
    3971             my $iaddr = inet_aton($hostname) or 
     3971            my $iaddr = 0; 
     3972            $iaddr = inet_aton($hostname); 
     3973            unless ($iaddr) { 
    39723974                &sys_log("could not resolve auto_dl $hostname " . 
    39733975                    "to an IP at line $i"); 
     3976                next LINE; 
     3977            } 
    39743978            $ip = inet_ntoa($iaddr) or 
    39753979                &sys_log("could not resolve auto_dl $hostname " .