summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-12-07 12:13:20 +0100
committerPierre Ossman <ossman@cendio.se>2015-12-07 12:14:26 +0100
commite9d59f94aba70d7c6c7f56bace878d0c42b2b686 (patch)
tree1d911d4089ac43fa9d8efe9201db5e61ac848f61
parentec9ee60b150c8614593449a522869a5fef5897dc (diff)
downloadtigervnc-e9d59f94aba70d7c6c7f56bace878d0c42b2b686.tar.gz
tigervnc-e9d59f94aba70d7c6c7f56bace878d0c42b2b686.zip
Init socket subsystem before parsing filters
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. (cherry picked from commit 398a6f43327ea3a8c1e58ed77f34fd4409cccb9d)
-rw-r--r--common/network/TcpSocket.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx
index 5a8f75d1..6561f3d6 100644
--- a/common/network/TcpSocket.cxx
+++ b/common/network/TcpSocket.cxx
@@ -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