]> andersk Git - gssapi-openssh.git/commitdiff
another bug fix from OPENSSH_3_2_3P1_GSI_3 (the tag moved...)
authorjbasney <jbasney>
Fri, 21 Jun 2002 01:08:59 +0000 (01:08 +0000)
committerjbasney <jbasney>
Fri, 21 Jun 2002 01:08:59 +0000 (01:08 +0000)
openssh/auth2.c

index 1c536441cfa48bac6dff5bb37f67b74422995d67..62119f7d12bd0ef80416e1e5d7e13855815ebee1 100644 (file)
@@ -216,7 +216,7 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt)
                         pw = getpwnam(user);
                         if (pw && allowed_user(pw)) {
                                 olduser = authctxt->user;
-                                authctxt->user = user;
+                                authctxt->user = xstrdup(user);
                                 authctxt->pw = pwcopy(pw);
                                 authctxt->valid = 1;
                                 changeuser = 1;
@@ -233,6 +233,7 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt)
                 struct passwd *pw = NULL;
                 pw = getpwnam(user);
                 if (pw && allowed_user(pw)) {
+                       xfree(authctxt->user);
                         authctxt->user = olduser;
                         authctxt->pw = pwcopy(pw);
                         authctxt->valid = 1;
This page took 0.041292 seconds and 5 git commands to generate.