Merge pull request #2123 from UrBnW/watchint

fix(whatchguard) maxint issue
This commit is contained in:
qgarnier 2020-07-24 15:31:28 +02:00 committed by GitHub
commit bacd6967c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -122,6 +122,11 @@ sub manage_selection {
$self->{output}->output_add(long_msg => "skipping '" . $result->{wgPolicyName} . "': no matching filter.", debug => 1);
next;
}
# Must be a Watchguard bug, where wgPolicyCurrActiveConns sporadically returns 2^321...
if ($result->{wgPolicyCurrActiveConns} == 4294967295) {
$result->{wgPolicyCurrActiveConns} = 0;
}
$self->{policy}->{$instance} = { display => $result->{wgPolicyName},
%$result