Merge branch '1733-filtro-de-traps-llena-el-log-de-error' into 'develop'

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

See merge request artica/pandorafms!1229
This commit is contained in:
vgilc 2018-01-08 12:33:32 +01:00
commit dca895c2a4
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ sub pandora_snmptrapd {
(my $trap_ver, $line) = split(/\[\*\*\]/, $line, 2); (my $trap_ver, $line) = split(/\[\*\*\]/, $line, 2);
# Process SNMP filter # 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); logger($pa_config, "Reading trap '$line'", 10);
my ($date, $time, $source, $oid, $type, $type_desc, $value, $data) = ('', '', '', '', '', '', '', ''); my ($date, $time, $source, $oid, $type, $type_desc, $value, $data) = ('', '', '', '', '', '', '', '');