summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-18 19:48:35 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-18 19:48:35 +0000
commitbe0e7f04b7ce30b9cfa93faa852ef21c53165acb (patch)
tree2aa67b3a57ceb78f66476713b1f4e505ffe9cb75 /src/core
parent78b0e00b5178fef1622856fe7581fa4e961d912c (diff)
downloadirssi-be0e7f04b7ce30b9cfa93faa852ef21c53165acb.zip
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/network.c3
1 files changed, 1 insertions, 2 deletions
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);