]> source.dussan.org Git - tigervnc.git/commitdiff
Use empty address buffer when sockaddr sa_family is not what we want
authorJan Grulich <jgrulich@redhat.com>
Wed, 26 Sep 2018 08:48:15 +0000 (10:48 +0200)
committerJan Grulich <jgrulich@redhat.com>
Wed, 26 Sep 2018 13:57:37 +0000 (15:57 +0200)
common/network/TcpSocket.cxx

index 51d77c76ebfd209033a90097cc63397b9e1a3404..9e277cbb8e32e8909a9b90e7bd31d0d7129bd0c2 100644 (file)
@@ -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;