]> source.dussan.org Git - tigervnc.git/commitdiff
Init socket subsystem before parsing filters
authorPierre Ossman <ossman@cendio.se>
Mon, 7 Dec 2015 11:13:20 +0000 (12:13 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 7 Dec 2015 11:13:20 +0000 (12:13 +0100)
Parsing a filter might be the first thing we do so we need to
make sure the socket subsystem is running so that we can look
up names.

common/network/TcpSocket.cxx

index 5a8f75d1f71aa2855e4660929acd69093de0271f..6561f3d64e810ba2307f281ef213dfced44fe3be 100644 (file)
@@ -753,6 +753,8 @@ TcpFilter::Pattern TcpFilter::parsePattern(const char* p) {
   bool prefix_specified;
   int family;
 
+  initSockets();
+
   prefix_specified = rfb::strSplit(&p[1], '/', &addr.buf, &pref.buf);
   if (addr.buf[0] == '\0') {
     // Match any address