aboutsummaryrefslogtreecommitdiffstats
path: root/common/network/TcpSocket.cxx
diff options
context:
space:
mode:
authorJan Grulich <jgrulich@redhat.com>2018-09-26 10:48:15 +0200
committerJan Grulich <jgrulich@redhat.com>2018-09-26 15:57:37 +0200
commitfeca1d3dd02f327e2d0fd5ea780664a87b51ab2c (patch)
treed3c61f11d99d8cc60e54fe7f1cb93d1b9b4c33f3 /common/network/TcpSocket.cxx
parent20041a2924eb19470e1780c6c07ed594f3f9f614 (diff)
downloadtigervnc-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.cxx2
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;