Skip to content

Commit

Permalink
Merge pull request wolfSSL#701 from anhu/ipv6_fix
Browse files Browse the repository at this point in the history
Fix compile error triggered by enabling TEST_IPV6
  • Loading branch information
dgarske authored May 28, 2024
2 parents e483578 + 17a9ff4 commit 11f0b22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2396,8 +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, &clientAddr.sin_addr, conn->ip,
INET_ADDRSTRLEN);
inet_ntop(AF_INET,
#ifdef TEST_IPV6
&clientAddr.sin6_addr,
#else
&clientAddr.sin_addr,
#endif /* TEST_IPV6 */
conn->ip, INET_ADDRSTRLEN);
}
#endif

Expand Down

0 comments on commit 11f0b22

Please sign in to comment.