ap_req.data if it was allocated by kg2_parse_token(), otherwise we
lose very badly trying to free the middle of a potentially
malloc()'ed block, possibly coredumping.
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10925
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Sep 21 00:32:28 1998 Tom Yu <tlyu@mit.edu>
+
+ * accept_sec_context.c (krb5_gss_accept_sec_context): Only free
+ ap_req.data if it was allocated by kg2_parse_token(), otherwise we
+ lose very badly trying to free the middle of a potentially
+ malloc()'ed block, possibly coredumping.
+
Thu Sep 3 19:35:44 1998 Tom Yu <tlyu@mit.edu>
* accept_sec_context.c (krb5_gss_accept_sec_context): Fix typo;
krb5_free_principal(context, deleg_cred->princ);
xfree(deleg_cred);
}
- if (ap_req.data)
+ if (ap_req.data && gsskrb5_vers == 2000)
xfree(ap_req.data);
if (ap_rep.data)
xfree(ap_rep.data);