pull up r22310 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 11 May 2009 20:55:59 +0000 (20:55 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 11 May 2009 20:55:59 +0000 (20:55 +0000)
 ------------------------------------------------------------------------
 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

src/lib/krb5/krb/get_in_tkt.c

index c34871e9fcbf39fba67bcecc9a84fbc17fa6cc86..532ee2883448c25e7b92a62903a1cb7e3da9ff47 100644 (file)
@@ -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;