From: damien Date: Wed, 2 Feb 2000 14:07:07 +0000 (+0000) Subject: - Fixed SEGVs in authloop, fix from vbzoli@hbrt.hu X-Git-Tag: V_1_2_2_P1~18 X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/commitdiff_plain/d07d1c58ec5e2188b543e828ca1e1bbb68e8d7ba - Fixed SEGVs in authloop, fix from vbzoli@hbrt.hu --- 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 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);