From: Jan Grulich Date: Wed, 26 Sep 2018 08:48:15 +0000 (+0200) Subject: Use empty address buffer when sockaddr sa_family is not what we want X-Git-Tag: v1.9.90~62^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=feca1d3dd02f327e2d0fd5ea780664a87b51ab2c;p=tigervnc.git Use empty address buffer when sockaddr sa_family is not what we want --- 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;