[krbdev.mit.edu #3421] HPUX 11.22 getaddrinfo() issues

nate.yocom@centrify.com via RT rt-comment at krbdev.mit.edu
Thu Jan 26 22:15:02 EST 2006


The attached patch fixes the following getaddrinfo() related issues:

- Despite being given both a host and service name, getaddrinfo() on
HPUX 11.22 sometimes returns EAI_NONAME.  To fix, the patch adds a check
for gethostbyname and getservbyname and falls back on them in the case
of HPUX and a return of EAI_NONAME.  

- Memory leak, if getaddrinfo() succeeds, we need to free the result
before leaving with freeaddrinfo()

Nate Yocom
Senior Software Engineer
Centrify Corporation
425.462.5894
www.centrify.com 




More information about the krb5-bugs mailing list