From 600c43935df933b727dc4a483ff0c7c30cde1a66 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 8 Jan 2018 10:48:38 +0100 Subject: [PATCH] Replace a 'next' statement that exits a subroutine with a 'return'. Ref pandora_enterprise#1733. --- pandora_server/lib/PandoraFMS/SNMPServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/SNMPServer.pm b/pandora_server/lib/PandoraFMS/SNMPServer.pm index 82595e6b6f..9cd44427d6 100644 --- a/pandora_server/lib/PandoraFMS/SNMPServer.pm +++ b/pandora_server/lib/PandoraFMS/SNMPServer.pm @@ -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) = ('', '', '', '', '', '', '', '');