[16055] in Kerberos-V5-bugs
[krbdev.mit.edu #8699] git commit
daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Tue Jun 19 10:35:32 2018
Mail-followup-to: rt@krbdev.mit.edu
mail-copies-to: never
From: "Greg Hudson via RT" <rt-comment@KRBDEV-PROD-APP-1.mit.edu>
In-Reply-To: <rt-8699@krbdev.mit.edu>
Message-ID: <rt-8699-48648.3.18139899598712@krbdev.mit.edu>
To: "'AdminCc of krbdev.mit.edu Ticket #8699'":;
Date: Tue, 19 Jun 2018 10:35:23 -0400 (EDT)
Reply-To: rt-comment@KRBDEV-PROD-APP-1.mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu
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@mit.edu>
Commit: 0f1ebd3dc612a58e2e3a019ab97965369a354e59
Branch: master
src/lib/krb5/os/hostaddr.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs