commit | f1665ac7fbff068ffc2c2f3f110645609b73806c | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Wed Nov 19 11:01:10 2014 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Wed Nov 19 11:01:10 2014 +0100 |
tree | cb797476b6071da4026cc663e4f01132c67445b2 | |
parent | e7538eb31dd087bc9560ec3c027842e7bb5d8753 [diff] [blame] |
inet_ntoa() want's the address directly, not a pointer to it
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index 3129a93..d123875 100644 --- a/common/network/TcpSocket.cxx +++ b/common/network/TcpSocket.cxx
@@ -274,7 +274,7 @@ return rfb::strDup(""); } - char* name = inet_ntoa(addr); + char* name = inet_ntoa(sa.u.sin.sin_addr); #endif /* HAVE_INET_PTON */ if (name) { return rfb::strDup(name);