Skip to content

Commit

Permalink
INET6_ADDRSTRLEN
Browse files Browse the repository at this point in the history
  • Loading branch information
anhu committed May 30, 2024
1 parent 4b844fe commit a54f374
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2396,13 +2396,13 @@ static int StartSSHD(int argc, char** argv)
conn->fd = (int)accept(listenFd, (struct sockaddr*)&clientAddr,
&clientAddrSz);
if (conn->fd >= 0) {
inet_ntop(AF_INET,
#ifdef TEST_IPV6
&clientAddr.sin6_addr,
inet_ntop(AF_INET, &clientAddr.sin6_addr, conn->ip,
INET6_ADDRSTRLEN);
#else
&clientAddr.sin_addr,
inet_ntop(AF_INET, &clientAddr.sin_addr, conn->ip,
INET_ADDRSTRLEN);
#endif /* TEST_IPV6 */
conn->ip, INET_ADDRSTRLEN);
}
#endif

Expand Down

0 comments on commit a54f374

Please sign in to comment.