]> andersk Git - openssh.git/commitdiff
- Fixed SEGVs in authloop, fix from vbzoli@hbrt.hu
authordamien <damien>
Wed, 2 Feb 2000 14:07:07 +0000 (14:07 +0000)
committerdamien <damien>
Wed, 2 Feb 2000 14:07:07 +0000 (14:07 +0000)
ChangeLog
sshd.c

index 67382603cb697fd229a0341bfcb773eea88e1a5b..5bacbcba86f94f9df6dc2755fdd1477207c7c7f9 100644 (file)
--- 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 f122797863a55cd1042e01fa85ba496374fc8c01..bffbe59dca4db00ea70406699ab9eb4fa3623333 100644 (file)
--- 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);
This page took 0.197377 seconds and 5 git commands to generate.