projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged Irssi 0.8.2 from irssi.org cvs.
[silc.git]
/
apps
/
irssi
/
src
/
core
/
network.c
diff --git
a/apps/irssi/src/core/network.c
b/apps/irssi/src/core/network.c
index 6be871132df4e3695416c166f15a5bf689345b9c..e53b01897b4938ddfe1ea3e092165160a26e9428 100644
(file)
--- a/
apps/irssi/src/core/network.c
+++ b/
apps/irssi/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)
#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);
ip4->family = AF_INET;
memcpy(&ip4->ip, hp->h_addr, 4);
@@
-590,7
+589,7
@@
int is_ipv4_address(const char *host)
int is_ipv6_address(const char *host)
{
while (*host != '\0') {
int is_ipv6_address(const char *host)
{
while (*host != '\0') {
- if (*host != ':' && !isxdigit(*host))
+ if (*host != ':' && !i
_i
sxdigit(*host))
return 0;
host++;
}
return 0;
host++;
}