[krbdev.mit.edu #8750] git commit

Greg Hudson via RT rt-comment at KRBDEV-PROD-APP-1.mit.edu
Fri Oct 12 12:37:50 EDT 2018


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.

https://github.com/krb5/krb5/commit/76053d61fecfec8c5ea31c74bec73d2846b5effe
Author: Greg Hudson <ghudson at mit.edu>
Commit: 76053d61fecfec8c5ea31c74bec73d2846b5effe
Branch: master
 src/kadmin/ktutil/ktutil_funcs.c |   96 +++++++++++++++----------------------
 1 files changed, 39 insertions(+), 57 deletions(-)



More information about the krb5-bugs mailing list