# HG changeset patch # User vincentto13 <33652988+vincentto13@users.noreply.github.com> # Date 1553090620 -3600 # Node ID 258b57b208ae7903d70e7af4ab48955e2f461cd0 # Parent ff3f274ea56c7fc5c1d07c49db324fc8d402beac Fix for issue successfull login of disabled user (#78) This commit introduces fix for scenario: 1. Root login disabled on dropbear 2. PAM authentication model enabled While login as root user, after prompt for password user is being notified about login failrue, but after second attempt of prompt for password within same session, login becames succesfull. Signed-off-by: Pawel Rapkiewicz diff -r ff3f274ea56c -r 258b57b208ae svr-authpam.c --- a/svr-authpam.c Wed Mar 20 08:56:19 2019 -0500 +++ b/svr-authpam.c Wed Mar 20 15:03:40 2019 +0100 @@ -275,6 +275,7 @@ /* PAM auth succeeded but the username isn't allowed in for another reason (checkusername() failed) */ send_msg_userauth_failure(0, 1); + goto cleanup; } /* successful authentication */