diff options
author | nectar <nectar@FreeBSD.org> | 2002-11-24 20:59:25 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-11-24 20:59:25 +0000 |
commit | d13cd487f69aa39c9486c32e8c28e08dc9a63c76 (patch) | |
tree | 2708753996e89e20cd6831ff0f1965ac9952a791 /crypto/heimdal/lib/krb5/keytab_any.c | |
parent | 923bcb0860f02fab9cc26fecdbcffc17a9d9a7ec (diff) | |
parent | 1abd325d288bd51f6ca702d7fbf296a6f47f7e74 (diff) | |
download | FreeBSD-src-d13cd487f69aa39c9486c32e8c28e08dc9a63c76.zip FreeBSD-src-d13cd487f69aa39c9486c32e8c28e08dc9a63c76.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r107207,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto/heimdal/lib/krb5/keytab_any.c')
-rw-r--r-- | crypto/heimdal/lib/krb5/keytab_any.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crypto/heimdal/lib/krb5/keytab_any.c b/crypto/heimdal/lib/krb5/keytab_any.c index 268c8df..fe14d62 100644 --- a/crypto/heimdal/lib/krb5/keytab_any.c +++ b/crypto/heimdal/lib/krb5/keytab_any.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2002 Kungliga Tekniska Högskolan + * Copyright (c) 2001-2002 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -33,7 +33,7 @@ #include "krb5_locl.h" -RCSID("$Id: keytab_any.c,v 1.6 2002/04/18 14:02:11 joda Exp $"); +RCSID("$Id: keytab_any.c,v 1.6.4.1 2002/10/21 16:07:00 joda Exp $"); struct any_data { krb5_keytab kt; @@ -42,13 +42,15 @@ struct any_data { }; static void -free_list (struct any_data *a) +free_list (krb5_context context, struct any_data *a) { struct any_data *next; for (; a != NULL; a = next) { next = a->next; free (a->name); + if(a->kt) + krb5_kt_close(context, a->kt); free (a); } } @@ -91,7 +93,7 @@ any_resolve(krb5_context context, const char *name, krb5_keytab id) id->data = a0; return 0; fail: - free_list (a0); + free_list (context, a0); return ret; } @@ -112,7 +114,7 @@ any_close (krb5_context context, { struct any_data *a = id->data; - free_list (a); + free_list (context, a); return 0; } |