Replace a 'next' statement that exits a subroutine with a 'return'.

Ref pandora_enterprise#1733.
This commit is contained in:
Ramon Novoa 2018-01-08 10:48:38 +01:00
parent 932f6ce0cf
commit 600c43935d

@ -198,7 +198,7 @@ sub pandora_snmptrapd {
(my $trap_ver, $line) = split(/\[\*\*\]/, $line, 2);
# Process SNMP filter
next if (matches_filter ($dbh, $pa_config, $line) == 1);
return if (matches_filter ($dbh, $pa_config, $line) == 1);
logger($pa_config, "Reading trap '$line'", 10);
my ($date, $time, $source, $oid, $type, $type_desc, $value, $data) = ('', '', '', '', '', '', '', '');