summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvincentto13 <33652988+vincentto13@users.noreply.github.com>2019-03-20 15:03:40 +0100
committerMatt Johnston <matt@ucc.asn.au>2019-03-20 22:03:40 +0800
commita0aa2749813331134452f80bb8a808bdc871ba41 (patch)
tree865b1b65143a6c00c1ddfb9855b56866977e729f
parentb016ebedfd06421e2bafaf558671d5356044563b (diff)
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 <pawel.rapkiewicz@gmail.com>
-rw-r--r--svr-authpam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/svr-authpam.c b/svr-authpam.c
index d201bc9..e236db4 100644
--- a/svr-authpam.c
+++ b/svr-authpam.c
@@ -275,6 +275,7 @@ void svr_auth_pam(int valid_user) {
/* 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 */