From e9d59f94aba70d7c6c7f56bace878d0c42b2b686 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 7 Dec 2015 12:13:20 +0100 Subject: 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) --- common/network/TcpSocket.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3