From be0e7f04b7ce30b9cfa93faa852ef21c53165acb Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 18 Feb 2002 19:48:35 +0000 Subject: 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 --- src/core/network.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/network.c b/src/core/network.c index 882e94f2..e53b0189 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -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); -- cgit v1.2.3