summaryrefslogtreecommitdiff
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
parent17872527893e68ecab20cd75efab00dcea2b29ea (diff)
- Fixed SEGVs in authloop, fix from vbzoli@hbrt.hu
-rw-r--r--ChangeLog3
-rw-r--r--sshd.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 67382603..5bacbcba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20000203
+ - Fixed SEGVs in authloop, fix from vbzoli@hbrt.hu
+
20000202
- Fix lastlog code for directory based lastlogs. Fix from Josh Durham
<jmd@aoe.vt.edu>
diff --git a/sshd.c b/sshd.c
index f1227978..bffbe59d 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1524,8 +1524,10 @@ do_authloop(struct passwd * pw)
return;
}
- if (client_user != NULL)
+ if (client_user != NULL) {
xfree(client_user);
+ client_user = NULL;
+ }
if (attempt > AUTH_FAIL_MAX)
packet_disconnect(AUTH_FAIL_MSG, pw->pw_name);