]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix multiple leaks in ktutil addent 858/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 11 Oct 2018 19:33:35 +0000 (15:33 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 12 Oct 2018 15:55:06 +0000 (11:55 -0400)
commit76053d61fecfec8c5ea31c74bec73d2846b5effe
treea8826311d3c1ef700d7909eb662238d45465541f
parent5201e3529b26dffdb49ddf428ef2679e315b93d7
Fix multiple leaks in ktutil addent

In ktutil_add(), free allocations on success as well as failure.
Change all early returns to jumps to the cleanup label.  Free the
password buffer and unparsed principal name.  Do list manipulation as
the final step to simplify cleanup.  Reported by Bean Zhang.

ticket: 8750
src/kadmin/ktutil/ktutil_funcs.c