diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-18 19:48:35 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-18 19:48:35 +0000 |
commit | be0e7f04b7ce30b9cfa93faa852ef21c53165acb (patch) | |
tree | 2aa67b3a57ceb78f66476713b1f4e505ffe9cb75 /src | |
parent | 78b0e00b5178fef1622856fe7581fa4e961d912c (diff) | |
download | irssi-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')
-rw-r--r-- | src/core/network.c | 3 |
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); |