summaryrefslogtreecommitdiffstats
path: root/tests/resizet.sh
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2015-03-13 21:18:58 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2015-03-13 21:18:58 +0100
commit6fa394d59d91e6cfa3c107128ad1f7d6a6d70257 (patch)
treec1dc228398ac68ba2e7848e360adc00db724dc6e /tests/resizet.sh
parentfee333d674a4c697c1f33952bbc060ee810d9307 (diff)
Fix cidr handling for hash:*net* types
Commit 092d67cda9ad4 broke the cidr handling for the hash:*net* types when the sets were used by the SET target: entries with invalid cidr values were added to the sets. Reported by Jonathan Johnson. Testsuite entry is added to verify the fix.
Diffstat (limited to 'tests/resizet.sh')
-rwxr-xr-xtests/resizet.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/resizet.sh b/tests/resizet.sh
index b5f7fdc..7dc309f 100755
--- a/tests/resizet.sh
+++ b/tests/resizet.sh
@@ -103,7 +103,7 @@ case "$2" in
;;
esac
$ipset l test | grep ^$ip | while read x y z; do
- if [ $z -lt 10 -o $z -gt 99 ]; then
+ if [ $z -lt 10 -o $z -gt 100 ]; then
exit 1
fi
done