In krb5_get_in_tkt, free the whole encoded request (since the
authorGreg Hudson <ghudson@mit.edu>
Tue, 5 May 2009 16:30:19 +0000 (16:30 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 5 May 2009 16:30:19 +0000 (16:30 +0000)
structure was allocated by encode_krb5_as_req), not just the contents.

ticket: 6401

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22310 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/get_in_tkt.c

index 5acc19aa569c60887c28f27688146a54a3e7bada..018676dbee8d80f194015ac99f072e2951d6d3c6 100644 (file)
@@ -649,7 +649,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;