(recv_conn): replace inaddr2str with getnameinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7517 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -137,7 +137,8 @@ recv_conn (int sock, kx_context *kc,
|
||||
kc->thisaddr = thisaddr;
|
||||
kc->thataddr = thataddr;
|
||||
|
||||
inaddr2str (thataddr.sin_addr, remotehost, sizeof(remotehost));
|
||||
getnameinfo (&thataddr, addrlen, remotehost, sizeof(remotehost),
|
||||
NULL, 0, 0);
|
||||
|
||||
if (net_read (sock, msg, 4) != 4) {
|
||||
syslog (LOG_ERR, "read: %m");
|
||||
|
Reference in New Issue
Block a user