From: Eric Fahlgren Date: Tue, 9 Apr 2024 14:23:46 +0000 (-0700) Subject: snort3: fix bug with unset variable X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=c8b13adaa00d21da5dda89496bce91510cfb4eb6;p=feed%2Fpackages.git snort3: fix bug with unset variable - Parameter not set in two places: /usr/bin/snort-mgr: eval: line 125: options: parameter not set Reported-by: @klingon888 Signed-off-by: Eric Fahlgren --- diff --git a/net/snort3/Makefile b/net/snort3/Makefile index 48ce85b456..a8552428b7 100644 --- a/net/snort3/Makefile +++ b/net/snort3/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=snort3 PKG_VERSION:=3.1.84.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_VERSION:=$(PKG_VERSION) diff --git a/net/snort3/files/snort-mgr b/net/snort3/files/snort-mgr index 1fc54ca127..3ea1b3e4d3 100644 --- a/net/snort3/files/snort-mgr +++ b/net/snort3/files/snort-mgr @@ -54,7 +54,7 @@ nft_rm_table() { nft_add_table() { if [ "$(uci -q get snort.snort.method)" = "nfq" ]; then - local options + local options='' $VERBOSE && options='-e' print nftables | nft $options -f $STDIN $VERBOSE && nft list table inet snort @@ -118,7 +118,7 @@ check() { fi if [ "$(uci -q get snort.snort.method)" = "nfq" ]; then - local options + local options='' local test_nft="${CONF_DIR}/test_conf.nft" print nftables > "${test_nft}" || die "Errors during generation of nftables config" $VERBOSE && options='-e'