remove useless code

This commit is contained in:
garnier-quentin 2019-02-15 14:21:09 +01:00
parent 5a45cb8eff
commit 8b20b0338f
1 changed files with 1 additions and 4 deletions

View File

@ -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})) {