From 78091a185453594003c607b8e23d90993f33363c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 9 Jun 1995 02:52:05 +0000 Subject: [PATCH] Fix problem where the ticket field was assigned with a krb5_data, which was then immediately freed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5988 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 6 ++++++ src/lib/krb5/krb/rd_cred.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 93e73142a..bb7c33781 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +Thu Jun 8 22:48:27 1995 Theodore Y. Ts'o + + * rd_cred.c (krb5_rd_cred_basic): Fix problem where the ticket + field was assigned with a krb5_data, which was then + immediately freed. + Thu Jun 8 16:06:44 1995 * compat_recv.c, auth_con.c, chk_trans.c, encrypt_tk.c, diff --git a/src/lib/krb5/krb/rd_cred.c b/src/lib/krb5/krb/rd_cred.c index 0260b21ba..71d830ee1 100644 --- a/src/lib/krb5/krb/rd_cred.c +++ b/src/lib/krb5/krb/rd_cred.c @@ -172,7 +172,7 @@ krb5_rd_cred_basic(context, pcreddata, pkeyblock, local_addr, remote_addr, goto cleanup; pcur->ticket = *pdata; - krb5_free_data(context, pdata); + krb5_xfree(context, pdata); pcur->is_skey = FALSE; -- 2.26.2