summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDug Song <dugsong@cvs.openbsd.org>2002-03-18 01:30:11 +0000
committerDug Song <dugsong@cvs.openbsd.org>2002-03-18 01:30:11 +0000
commite6811047b509bb20d245621bc272005683d9b812 (patch)
treebaf6e2522ed79a99795d00df0a241fa42f5b4f33 /usr.bin
parent6d039d422d3855483649b899d42c9d054fbc5f12 (diff)
set client to NULL after xfree(), from Rolf Braun <rbraun+ssh@andrew.cmu.edu>
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/auth-krb4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/auth-krb4.c b/usr.bin/ssh/auth-krb4.c
index f7a144f9d6e..2a3cf53146e 100644
--- a/usr.bin/ssh/auth-krb4.c
+++ b/usr.bin/ssh/auth-krb4.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth-krb4.c,v 1.25 2001/12/19 07:18:56 deraadt Exp $");
+RCSID("$OpenBSD: auth-krb4.c,v 1.26 2002/03/18 01:30:10 dugsong Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -253,6 +253,7 @@ auth_krb4(Authctxt *authctxt, KTEXT auth, char **client)
log("Kerberos v4 .klogin authorization failed for %s to "
"account %s", *client, authctxt->user);
xfree(*client);
+ *client = NULL;
return (0);
}
/* Increment the checksum, and return it encrypted with the