[krbdev.mit.edu #8699] git commit

Greg Hudson via RT rt-comment at KRBDEV-PROD-APP-1.mit.edu
Tue Jun 19 10:35:23 EDT 2018


Fix minor leak in k5_os_hostaddr()

In k5_os_hostaddr(), if allocation of the result array fails, use the
cleanup handler so that the getaddrinfo() result is freed.  Also
initialize the pointers which are freed in the cleanup handler for
safety.  Reported by Bean Zhang.

https://github.com/krb5/krb5/commit/0f1ebd3dc612a58e2e3a019ab97965369a354e59
Author: Greg Hudson <ghudson at mit.edu>
Commit: 0f1ebd3dc612a58e2e3a019ab97965369a354e59
Branch: master
 src/lib/krb5/os/hostaddr.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)



More information about the krb5-bugs mailing list