Changeset 1270

Show
Ignore:
Timestamp:
09/30/08 07:56:34 (2 months ago)
Author:
mbr
Message:

Fixed check_commands() include/exclude search criteria by using the keys
operator against incoming hash refs (bug noticed by Franck Joncourt).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fwknop/trunk/fwknopd

    r1267 r1270  
    41004100    for my $cmd (keys %cmds) { 
    41014101 
    4102         if ($include_hr) { 
     4102        if (keys %$include_hr) { 
    41034103            next unless defined $include_hr->{$cmd}; 
    41044104        } 
    4105         if ($exclude_hr) { 
     4105        if (keys %$exclude_hr) { 
    41064106            next if defined $exclude_hr->{$cmd}; 
    41074107        }