1
0
Fork 0

Merge pull request #409 from LemonBoy/reverse-lookup-flags

Reverse lookup flags
This commit is contained in:
ailin-nemui 2016-01-29 14:03:40 +01:00
commit 161772892f
1 changed files with 4 additions and 2 deletions

View File

@ -447,8 +447,10 @@ int net_gethostbyaddr(IPADDR *ip, char **name)
sin_set_ip(&so, ip);
/* save error to host_error for later use */
host_error = getnameinfo((struct sockaddr *) &so, sizeof(so),
hostname, sizeof(hostname), NULL, 0, 0);
host_error = getnameinfo((struct sockaddr *)&so, sizeof(so),
hostname, sizeof(hostname),
NULL, 0,
NI_NAMEREQD);
if (host_error != 0)
return host_error;