]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix minor leak in k5_os_hostaddr() 794/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 15 Jun 2018 15:31:04 +0000 (11:31 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 19 Jun 2018 14:12:12 +0000 (10:12 -0400)
commit0f1ebd3dc612a58e2e3a019ab97965369a354e59
tree136654b2d51aa99e29a4bc9bf0627a8c527b03ee
parent971c5213f7c501d3943bc0ff8db918f1616aa35a
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.

ticket: 8699
src/lib/krb5/os/hostaddr.c