addrlist is NULL when getaddrinfo fails. so we
commit7dcec5a863625d4249972317074863bf35b7cfc4
authorabbyz9 <abbyz9@fd0465a7-2a7b-4605-b674-a3f860cb63d9>
Sat, 5 Dec 2009 23:51:30 +0000 (5 23:51 +0000)
committerabbyz9 <abbyz9@fd0465a7-2a7b-4605-b674-a3f860cb63d9>
Sat, 5 Dec 2009 23:51:30 +0000 (5 23:51 +0000)
treedf3b3f00fc7c9f3f02512153813e49a0473a4fe3
parent8af804e549bddbadb39ea70667fbc653f64d9fe8
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: http://npfs.svn.sourceforge.net/svnroot/npfs/npfs/trunk@49 fd0465a7-2a7b-4605-b674-a3f860cb63d9
libnpclient/netmount.c