diff options
author | Phil Sutter <phil@nwl.cc> | 2024-12-12 13:47:31 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2024-12-15 17:08:36 +0100 |
commit | 61d78c20377e602de2759b58c3abb0d14ca50f7b (patch) | |
tree | e09b0070bcb98ca58bf0e47a582aa71e870408d4 /tests | |
parent | 316f592ddc547c28388da4e7cb7c5c8f89cd3591 (diff) |
tests: cidr.sh: Respect IPSET_BIN env var
Allow callers to specify the ipset binary to test (with), just like
runtest.sh itself does, too.
Fixes: d05e7e9349bd1 ("Out of bound access in hash:net* types fixed")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cidr.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cidr.sh b/tests/cidr.sh index 2c4d939..ca01f06 100755 --- a/tests/cidr.sh +++ b/tests/cidr.sh @@ -35,7 +35,7 @@ NETS="0.0.0.0/1 255.255.255.252/31 255.255.255.254/32" -ipset="../src/ipset" +ipset="${IPSET_BIN:-../src/ipset}" if which netmask >/dev/null 2>&1; then net_first_addr() { |