addrlist is NULL when getaddrinfo fails. so we simply check before using it.
addrlist is NULL when getaddrinfo fails. so we
simply check before using it.

using gai_strerror() to get the actual error string
would be good, but it doesn't look to be
thread-safe.

Signed-off-by: Abhishek Kulkarni <adkulkar@umail.iu.edu>
Acked-by: Latchesar Ionkov <lucho@ionkov.net>



git-svn-id: 3e96b3da823e09382ce77fb817c053c835863db4@49 fd0465a7-2a7b-4605-b674-a3f860cb63d9

nuxlli/npfs