aboutsummaryrefslogtreecommitdiffstats
path: root/common/network/TcpSocket.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-11-19 11:01:10 +0100
committerPierre Ossman <ossman@cendio.se>2014-11-19 11:01:10 +0100
commitf1665ac7fbff068ffc2c2f3f110645609b73806c (patch)
treecb797476b6071da4026cc663e4f01132c67445b2 /common/network/TcpSocket.cxx
parente7538eb31dd087bc9560ec3c027842e7bb5d8753 (diff)
downloadtigervnc-f1665ac7fbff068ffc2c2f3f110645609b73806c.tar.gz
tigervnc-f1665ac7fbff068ffc2c2f3f110645609b73806c.zip
inet_ntoa() want's the address directly, not a pointer to it
Diffstat (limited to 'common/network/TcpSocket.cxx')
-rw-r--r--common/network/TcpSocket.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx
index 3129a93e..d1238754 100644
--- a/common/network/TcpSocket.cxx
+++ b/common/network/TcpSocket.cxx
@@ -274,7 +274,7 @@ char* TcpSocket::getPeerAddress() {
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);