[krbdev.mit.edu #8750] git commit

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[krbdev.mit.edu #8750] git commit

Greg Hudson via RT-2

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.

Author: Greg Hudson <[hidden email]>
Commit: 76053d61fecfec8c5ea31c74bec73d2846b5effe
Branch: master
 src/kadmin/ktutil/ktutil_funcs.c |   96 +++++++++++++++----------------------
 1 files changed, 39 insertions(+), 57 deletions(-)

krb5-bugs mailing list
[hidden email]