summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--sshd.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 67382603c..5bacbcba8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
120000203
2 - Fixed SEGVs in authloop, fix from vbzoli@hbrt.hu
3
120000202 420000202
2 - Fix lastlog code for directory based lastlogs. Fix from Josh Durham 5 - Fix lastlog code for directory based lastlogs. Fix from Josh Durham
3 <jmd@aoe.vt.edu> 6 <jmd@aoe.vt.edu>
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);