summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-02-03 01:07:07 +1100
committerDamien Miller <djm@mindrot.org>2000-02-03 01:07:07 +1100
commit1852246d30592c4b511db0755a806f90a4842852 (patch)
tree613a1dd69d4dad9b30890f1d3e2c2af0a3c2a662 /sshd.c
parent17872527893e68ecab20cd75efab00dcea2b29ea (diff)
- Fixed SEGVs in authloop, fix from vbzoli@hbrt.hu
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index f12279786..bffbe59dc 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1524,8 +1524,10 @@ do_authloop(struct passwd * pw)
1524 return; 1524 return;
1525 } 1525 }
1526 1526
1527 if (client_user != NULL) 1527 if (client_user != NULL) {
1528 xfree(client_user); 1528 xfree(client_user);
1529 client_user = NULL;
1530 }
1529 1531
1530 if (attempt > AUTH_FAIL_MAX) 1532 if (attempt > AUTH_FAIL_MAX)
1531 packet_disconnect(AUTH_FAIL_MSG, pw->pw_name); 1533 packet_disconnect(AUTH_FAIL_MSG, pw->pw_name);