gethostbyaddr() was used incorrectly, found by James Woodcock, thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23223 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9776e38eb1
commit
2671053585
@ -59,7 +59,8 @@ inet_print_address(sockaddr* _address)
|
||||
return;
|
||||
}
|
||||
|
||||
hostent* host = gethostbyaddr((const char*)_address, sizeof(sockaddr_in), AF_INET);
|
||||
hostent* host = gethostbyaddr((const char*)&address.sin_addr,
|
||||
sizeof(sockaddr_in), AF_INET);
|
||||
servent* service = getservbyport(ntohs(address.sin_port), NULL);
|
||||
|
||||
const char *hostName;
|
||||
|
Loading…
Reference in New Issue
Block a user