Subject: | HPUX 11.22 getaddrinfo() issues |
Date: | Thu, 26 Jan 2006 16:20:42 -0800 |
From: | "Nate Yocom" <nate.yocom@centrify.com> |
To: | <krb5-bugs@mit.edu> |
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
- 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
Message body not shown because it is not plain text.