From: Yurii Chalov -X (ychalov - SOFTSERVE INC at Cisco) Date: Fri, 22 Dec 2023 10:16:29 +0000 (+0000) Subject: Pull request #4139: parser: fix --dump-rule-meta for negated ports X-Git-Tag: 3.1.78.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1760a8dbb829bb3fcf1a340ab6cc4bb80a47ecd;p=thirdparty%2Fsnort3.git Pull request #4139: parser: fix --dump-rule-meta for negated ports Merge in SNORT/snort3 from ~YCHALOV/snort3:negate_port_parse_fix to master Squashed commit of the following: commit 17b1e655c839f2d4d8415ff8c162fe230ba014e6 Author: Yurii Chalov Date: Fri Dec 8 16:11:24 2023 +0100 parser: fix --dump-rule-meta for negated ports --- diff --git a/src/parser/parse_ports.cc b/src/parser/parse_ports.cc index f438946b0..dcf79adcb 100644 --- a/src/parser/parse_ports.cc +++ b/src/parser/parse_ports.cc @@ -229,7 +229,7 @@ static PortObject* _POParseVar(POParser* pop) return nullptr; } - PortObject* pox = PortVarTableFind(pop->pvTable, name); + PortObject* pox = PortVarTableFind(pop->pvTable, name, true); snort_free(name); if (!pox)