mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
if gethostbyname() failed, the return value was returned incorrectly
(accidentally cvs committed it after some of my test) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2516 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
78b0e00b51
commit
be0e7f04b7
@ -415,8 +415,7 @@ int net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
|
||||
#else
|
||||
hp = gethostbyname(addr);
|
||||
if (hp == NULL)
|
||||
return -1;
|
||||
//return h_errno;
|
||||
return h_errno;
|
||||
|
||||
ip4->family = AF_INET;
|
||||
memcpy(&ip4->ip, hp->h_addr, 4);
|
||||
|
Loading…
Reference in New Issue
Block a user