From: Tom Yu Date: Mon, 11 May 2009 20:55:59 +0000 (+0000) Subject: pull up r22310 from trunk X-Git-Tag: krb5-1.7-beta2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fc846cdfe6224376dbfef699ba220983ebcf0a37;p=krb5.git pull up r22310 from trunk ------------------------------------------------------------------------ r22310 | ghudson | 2009-05-05 12:30:19 -0400 (Tue, 05 May 2009) | 5 lines Changed paths: M /trunk/src/lib/krb5/krb/get_in_tkt.c ticket: 6401 In krb5_get_in_tkt, free the whole encoded request (since the structure was allocated by encode_krb5_as_req), not just the contents. ticket: 6401 version_fixed: 1.7 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22336 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index c34871e9f..532ee2883 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -650,7 +650,7 @@ krb5_get_in_tkt(krb5_context context, retval = send_as_request(context, encoded_request, krb5_princ_realm(context, request.client), &err_reply, &as_reply, &use_master); - krb5_free_data_contents(context, encoded_request); + krb5_free_data(context, encoded_request); if (retval != 0) goto cleanup;