* kdc_preauth.c (return_etype_info2): After encoding the
etype_info2 and copying the pointers to the pa_data, free the
krb5_data pointer.
Ticket: new
Target_Version: 1.3
Tags: pickup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15483
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-05-23 Ezra Peisach <epeisach@mit.edu>
+
+ * kdc_preauth.c (return_etype_info2): After encoding the
+ etype_info2 and copying the pointers to the pa_data, free the
+ krb5_data pointer.
+
2003-05-22 Sam Hartman <hartmans@mit.edu>
* do_tgs_req.c (process_tgs_req): LOG transited check disabled as info not error
tmp_padata->contents = scratch->data;
tmp_padata->length = scratch->length;
*send_pa = tmp_padata;
+
+ /* For cleanup - we no longer own the contents of the krb5_data
+ * only to pointer to the krb5_data
+ */
+ scratch->data = 0;
+
cleanup:
if (entry)
krb5_free_etype_info(context, entry);
if (retval) {
if (tmp_padata)
free(tmp_padata);
- if (scratch)
- krb5_free_data(context, scratch);
}
+ if (scratch)
+ krb5_free_data(context, scratch);
return retval;
}