diff options
author | Jan Grulich <jgrulich@redhat.com> | 2018-09-26 10:48:15 +0200 |
---|---|---|
committer | Jan Grulich <jgrulich@redhat.com> | 2018-09-26 15:57:37 +0200 |
commit | feca1d3dd02f327e2d0fd5ea780664a87b51ab2c (patch) | |
tree | d3c61f11d99d8cc60e54fe7f1cb93d1b9b4c33f3 /common/network/TcpSocket.cxx | |
parent | 20041a2924eb19470e1780c6c07ed594f3f9f614 (diff) | |
download | tigervnc-feca1d3dd02f327e2d0fd5ea780664a87b51ab2c.tar.gz tigervnc-feca1d3dd02f327e2d0fd5ea780664a87b51ab2c.zip |
Use empty address buffer when sockaddr sa_family is not what we want
Diffstat (limited to 'common/network/TcpSocket.cxx')
-rw-r--r-- | common/network/TcpSocket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index 51d77c76..9e277cbb 100644 --- a/common/network/TcpSocket.cxx +++ b/common/network/TcpSocket.cxx @@ -736,7 +736,7 @@ char* TcpFilter::patternToStr(const TcpFilter::Pattern& p) { buffer + 1, sizeof (buffer) - 2, NULL, 0, NI_NUMERICHOST); strcat(buffer, "]"); addr.buf = rfb::strDup(buffer); - } else if (p.address.u.sa.sa_family == AF_UNSPEC) + } else addr.buf = rfb::strDup(""); char action; |