diff options
-rw-r--r-- | common/network/TcpSocket.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index 6fca3018..47c2a048 100644 --- a/common/network/TcpSocket.cxx +++ b/common/network/TcpSocket.cxx @@ -848,6 +848,8 @@ TcpFilter::Pattern TcpFilter::parsePattern(const char* p) { } } + family = pattern.address.u.sa.sa_family; + if (pattern.prefixlen > (family == AF_INET ? 32: 128)) throw Exception("invalid prefix length for filter address: %u", pattern.prefixlen); |