From feca1d3dd02f327e2d0fd5ea780664a87b51ab2c Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 26 Sep 2018 10:48:15 +0200 Subject: [PATCH] Use empty address buffer when sockaddr sa_family is not what we want --- common/network/TcpSocket.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5