summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index 5e9b3aa5..51ed8f77 100644
--- a/auth1.c
+++ b/auth1.c
@@ -479,13 +479,12 @@ do_authentication()
packet_start(SSH_SMSG_SUCCESS);
packet_send();
packet_write_wait();
- xfree(user);
-
#ifdef WITH_AIXAUTHENTICATE
/* We don't have a pty yet, so just label the line as "ssh" */
if (loginsuccess(user,get_canonical_hostname(),"ssh",&aixloginmsg) < 0)
aixloginmsg = NULL;
#endif /* WITH_AIXAUTHENTICATE */
+ xfree(user);
/* Perform session preparation. */
do_authenticated(pw);