From 92beabecce965ab273323317666ca6ef7ec77df8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 15 Feb 2019 14:21:09 +0100 Subject: [PATCH] remove useless code --- centreon-plugins/centreon/plugins/snmp.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/centreon-plugins/centreon/plugins/snmp.pm b/centreon-plugins/centreon/plugins/snmp.pm index 64bb8cf63..a0d3f0d18 100644 --- a/centreon-plugins/centreon/plugins/snmp.pm +++ b/centreon-plugins/centreon/plugins/snmp.pm @@ -787,10 +787,7 @@ sub check_options { # unauthenticated and unencrypted $self->{snmp_params}->{SecLevel} = 'noAuthNoPriv'; - if (!defined($options{option_results}->{snmp_auth_passphrase}) && !defined($options{option_results}->{snmp_priv_passphrase})) { - return ; - } - + my $user_activate = 0; if (defined($options{option_results}->{snmp_auth_passphrase}) && $options{option_results}->{snmp_auth_passphrase} ne '') { if (!defined($options{option_results}->{snmp_auth_protocol})) {