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 <ericfahlgren@gmail.com>
This commit is contained in:
parent
a314f26e99
commit
c8b13adaa0
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=snort3
|
PKG_NAME:=snort3
|
||||||
PKG_VERSION:=3.1.84.0
|
PKG_VERSION:=3.1.84.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
||||||
|
|
|
@ -54,7 +54,7 @@ nft_rm_table() {
|
||||||
|
|
||||||
nft_add_table() {
|
nft_add_table() {
|
||||||
if [ "$(uci -q get snort.snort.method)" = "nfq" ]; then
|
if [ "$(uci -q get snort.snort.method)" = "nfq" ]; then
|
||||||
local options
|
local options=''
|
||||||
$VERBOSE && options='-e'
|
$VERBOSE && options='-e'
|
||||||
print nftables | nft $options -f $STDIN
|
print nftables | nft $options -f $STDIN
|
||||||
$VERBOSE && nft list table inet snort
|
$VERBOSE && nft list table inet snort
|
||||||
|
@ -118,7 +118,7 @@ check() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(uci -q get snort.snort.method)" = "nfq" ]; then
|
if [ "$(uci -q get snort.snort.method)" = "nfq" ]; then
|
||||||
local options
|
local options=''
|
||||||
local test_nft="${CONF_DIR}/test_conf.nft"
|
local test_nft="${CONF_DIR}/test_conf.nft"
|
||||||
print nftables > "${test_nft}" || die "Errors during generation of nftables config"
|
print nftables > "${test_nft}" || die "Errors during generation of nftables config"
|
||||||
$VERBOSE && options='-e'
|
$VERBOSE && options='-e'
|
||||||
|
|
Loading…
Reference in New Issue