+ fix error on ssid in foreach

This commit is contained in:
Sims24 2016-07-20 16:06:45 +02:00 committed by GitHub
parent cd05748644
commit 6214ed39cf
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ sub manage_selection {
],
nothing_quit => 1);
foreach my $oid (keys %{$self->{results}->{ $oid_ahXIfEntry }}) {
my $ssid = $self->{results}->{ $oid_ahXIfEntry }->{$oid};
foreach my $oid (keys %{$self->{results}->{ $oid_ahSSIDNAME }}) {
my $ssid = $self->{results}->{ $oid_ahSSIDNAME }->{$oid};
if (defined($self->{option_results}->{filter_ssid}) && $self->{option_results}->{filter_ssid} ne '' &&
$ssid !~ /$self->{option_results}->{filter_ssid}/) {
$self->{output}->output_add(long_msg => "skipping ssid " . $ssid . " : no matching filter.", debug => 1);