mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #409 from LemonBoy/reverse-lookup-flags
Reverse lookup flags
This commit is contained in:
commit
161772892f
@ -447,8 +447,10 @@ int net_gethostbyaddr(IPADDR *ip, char **name)
|
|||||||
sin_set_ip(&so, ip);
|
sin_set_ip(&so, ip);
|
||||||
|
|
||||||
/* save error to host_error for later use */
|
/* save error to host_error for later use */
|
||||||
host_error = getnameinfo((struct sockaddr *) &so, sizeof(so),
|
host_error = getnameinfo((struct sockaddr *)&so, sizeof(so),
|
||||||
hostname, sizeof(hostname), NULL, 0, 0);
|
hostname, sizeof(hostname),
|
||||||
|
NULL, 0,
|
||||||
|
NI_NAMEREQD);
|
||||||
if (host_error != 0)
|
if (host_error != 0)
|
||||||
return host_error;
|
return host_error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user