fix krb5_mk_rep subkey leaks
authorTom Yu <tlyu@mit.edu>
Thu, 22 Sep 2005 16:44:20 +0000 (16:44 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 22 Sep 2005 16:44:20 +0000 (16:44 +0000)
commitc02a7929608e666491eb85646a5631e2b98a5ec4
tree673dabc66bbe79222332e293186e2574247a33aa
parent14fefb4f285d01a2b190f405a135a8e406e5e4fa
fix krb5_mk_rep subkey leaks

* mk_req_ext.c (krb5int_generate_and_save_subkey): Check for and
free pre-existing subkeys before clobbering the pointers.  This
fixes some memory leaks.

ticket: new
target_version: 1.4.3
tags: pullup
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17387 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/mk_req_ext.c