[krbdev.mit.edu #8699] git commit

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

[krbdev.mit.edu #8699] git commit

Norm Green via RT

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 <[hidden email]>
Commit: 0f1ebd3dc612a58e2e3a019ab97965369a354e59
Branch: master
 src/lib/krb5/os/hostaddr.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

_______________________________________________
krb5-bugs mailing list
[hidden email]
https://mailman.mit.edu/mailman/listinfo/krb5-bugs