summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-01-08 20:54:36 +0000
committerKevin Steves <stevesk@pobox.com>2001-01-08 20:54:36 +0000
commit99a0563fd59e1d3e1b79a1a9dd38ce9f6b5059ee (patch)
tree75554e9f02ddcef0f52aa59bcc4e8926feb3634c
parent4b27a5377ef95630e9d409ad8c5a01dc23929a00 (diff)
- (stevesk) auth1.c: free should be after WITH_AIXAUTHENTICATE
code.
-rw-r--r--ChangeLog2
-rw-r--r--auth1.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index dca9ab26..564c513e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
20010109
- (bal) Resync CVS ID of cli.c
+ - (stevesk) auth1.c: free should be after WITH_AIXAUTHENTICATE
+ code.
20010108
- (bal) Fixed another typo in cli.c
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);