Fix a bug for check_param_pair_by_pam method.

This commit is contained in:
Samson-W 2019-08-19 20:28:04 +08:00
parent c887516d36
commit 4cb0418af7
1 changed files with 3 additions and 0 deletions

View File

@ -603,6 +603,9 @@ check_param_pair_by_pam()
if [ "$cndt_value" "-$COMPARE" "$CONDITION" ]; then if [ "$cndt_value" "-$COMPARE" "$CONDITION" ]; then
debug "$cndt_value -$COMPARE $CONDITION is ok" debug "$cndt_value -$COMPARE $CONDITION is ok"
FNRET=0 FNRET=0
elif [ "$cndt_value" -eq 0 ]; then
debug "$cndt_value -eq 0, is not ok"
FNRET=5
else else
debug "$cndt_value -$COMPARE $CONDITION is not ok" debug "$cndt_value -$COMPARE $CONDITION is not ok"
FNRET=5 FNRET=5