Skip to content

Commit

Permalink
Fix use unitialized value
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed Jan 13, 2016
1 parent 1533463 commit 41ecc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pf/node.pm
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ sub node_modify {
}
# If we are in inline mode then reevaluate the ipset session to clean old info
my $node_info = node_view($mac);
pf::ipset::iptables_update_set($mac, $old_role_id, $new_role_id) if ($node_info->{'last_connection_type'} eq $connection_type_to_str{$INLINE});
pf::ipset::iptables_update_set($mac, $old_role_id, $new_role_id) if (defined($node_info->{'last_connection_type'}) && $node_info->{'last_connection_type'} eq $connection_type_to_str{$INLINE});

# Autoregistration handling
if (!defined($data{'autoreg'}) && (!defined($existing->{autoreg}) || $existing->{autoreg} ne 'yes' )) {
Expand Down

0 comments on commit 41ecc9b

Please sign in to comment.