summaryrefslogtreecommitdiffstats
path: root/src/appl/bsd/kcmd.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-03-17 20:58:31 +0000
committerTheodore Tso <tytso@mit.edu>1995-03-17 20:58:31 +0000
commit96d4fa20ba03220f81ecb70a63022fc3da5ff530 (patch)
tree2ef4e5e3eb4818ffc91ef4305d3f9a027a638ba6 /src/appl/bsd/kcmd.c
parent354828d7e52be7dbdfb1ecb01355eadb7d062f26 (diff)
downloadkrb5-96d4fa20ba03220f81ecb70a63022fc3da5ff530.tar.gz
krb5-96d4fa20ba03220f81ecb70a63022fc3da5ff530.tar.xz
krb5-96d4fa20ba03220f81ecb70a63022fc3da5ff530.zip
Makefile.in, configure.in: Use the libdes425 library so that the DES
code doesn't get dragged in twice. krlogind.c: Include <sys/time.h> so that Linux can get the FD_SET macros. kcmd.c (kcmd): Close the credentials cache when you're done with it. krlogind.c (doit): Always initialize the Krb5 error table. krlogind.c (main, doit): Minor type fixes to gethostbyname(), accept(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5151 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/bsd/kcmd.c')
-rw-r--r--src/appl/bsd/kcmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c
index c2989ae4d..5bda9ff35 100644
--- a/src/appl/bsd/kcmd.c
+++ b/src/appl/bsd/kcmd.c
@@ -291,6 +291,7 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm,
/* Get ticket from credentials cache or kdc */
status = krb5_get_credentials(bsd_context, 0, cc, get_cred, &ret_cred);
+ (void) krb5_cc_close(bsd_context, cc);
krb5_free_creds(bsd_context, get_cred);
if (status) goto bad2;