(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:
Assar Westerlund
1999-12-05 00:20:14 +00:00
parent fe81c21fd5
commit b15b894583

View File

@@ -137,7 +137,8 @@ recv_conn (int sock, kx_context *kc,
kc->thisaddr = thisaddr; kc->thisaddr = thisaddr;
kc->thataddr = thataddr; 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) { if (net_read (sock, msg, 4) != 4) {
syslog (LOG_ERR, "read: %m"); syslog (LOG_ERR, "read: %m");