From 98601c21aae80dddec7b3b743a6a1c257533291b Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 20 Feb 1991 18:10:24 +0000 Subject: [PATCH] we can and should free creds.server git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1742 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/mk_req.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/krb/mk_req.c b/src/lib/krb5/krb/mk_req.c index 24e5bc78f..5fe7a12e8 100644 --- a/src/lib/krb5/krb/mk_req.c +++ b/src/lib/krb5/krb/mk_req.c @@ -79,8 +79,9 @@ krb5_data *outbuf; &creds, 0, /* We don't need the authenticator */ outbuf); - creds.server = 0; /* don't free it, someone else - owns it. */ + /* creds.server and the rest of the creds.* fields are filled in + by the ccache fetch or the kdc fetch, so we should allow it to be + freed */ krb5_free_cred_contents(&creds); return retval; } -- 2.26.2