Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/login Fixed 'login in free' warning in kdestroy().
details: https://anonhg.NetBSD.org/src/rev/3019b997a40b
branches: trunk
changeset: 479912:3019b997a40b
user: aidan <aidan%NetBSD.org@localhost>
date: Sun Dec 26 17:47:18 1999 +0000
description:
Fixed 'login in free' warning in kdestroy().
diffstat:
usr.bin/login/k5login.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (31 lines):
diff -r 6dc74678b9ce -r 3019b997a40b usr.bin/login/k5login.c
--- a/usr.bin/login/k5login.c Sun Dec 26 17:27:53 1999 +0000
+++ b/usr.bin/login/k5login.c Sun Dec 26 17:47:18 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: k5login.c,v 1.9 1999/12/05 23:39:11 aidan Exp $ */
+/* $NetBSD: k5login.c,v 1.10 1999/12/26 17:47:18 aidan Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)klogin.c 5.11 (Berkeley) 7/12/92";
#endif
-__RCSID("$NetBSD: k5login.c,v 1.9 1999/12/05 23:39:11 aidan Exp $");
+__RCSID("$NetBSD: k5login.c,v 1.10 1999/12/26 17:47:18 aidan Exp $");
#endif /* not lint */
#ifdef KERBEROS5
@@ -332,11 +332,7 @@
return;
code = krb5_cc_resolve(kcontext, krbtkfile_env, &ccache);
- if (!code) {
+ if (!code)
code = krb5_cc_destroy(kcontext, ccache);
- if (!code) {
- krb5_cc_close(kcontext, ccache);
- }
- }
}
#endif
Home |
Main Index |
Thread Index |
Old Index