summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_ifoperstatus.pl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/check_ifoperstatus.pl')
-rw-r--r--plugins-scripts/check_ifoperstatus.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl
index 59356bd7..62891ff7 100644
--- a/plugins-scripts/check_ifoperstatus.pl
+++ b/plugins-scripts/check_ifoperstatus.pl
@@ -384,15 +384,15 @@ sub process_arguments() {
384 if (defined $seclevel && defined $secname) { 384 if (defined $seclevel && defined $secname) {
385 385
386 # Must define a security level even though defualt is noAuthNoPriv 386 # Must define a security level even though defualt is noAuthNoPriv
387 unless ($seclevel eq ('noAuthNoPriv' || 'authNoPriv' || 'authPriv' ) ) { 387 unless ( grep /^$seclevel$/, qw(noAuthNoPriv authNoPriv authPriv) ) {
388 usage(); 388 usage();
389 exit $ERRORS{"UNKNOWN"}; 389 exit $ERRORS{"UNKNOWN"};
390 } 390 }
391 391
392 # Authentication wanted 392 # Authentication wanted
393 if ($seclevel eq ('authNoPriv' || 'authPriv') ) { 393 if ( $seclevel eq 'authNoPriv' || $seclevel eq 'authPriv' ) {
394 394
395 unless ($authproto eq ('MD5' || 'SHA1') ) { 395 unless ( $authproto eq 'MD5' || $authproto eq 'SHA1' ) {
396 usage(); 396 usage();
397 exit $ERRORS{"UNKNOWN"}; 397 exit $ERRORS{"UNKNOWN"};
398 } 398 }