From 516600858cb54906fb728d04e5edf1131ee7b3b2 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 10 Apr 2018 20:48:35 +0200 Subject: Fix parsing service names for ports Parsing is attempted both for numbers and service names and the temporary stored error message triggered to reset the state parameters about the set. Reported by Yuri D'Elia. --- tests/hash:ip,port.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/hash:ip,port.t b/tests/hash:ip,port.t index be323e0..aba8fdc 100644 --- a/tests/hash:ip,port.t +++ b/tests/hash:ip,port.t @@ -26,6 +26,10 @@ 0 ipset add test 2.0.0.0,5 # Try to add value after second random value 0 ipset add test 2.1.0.1,128 +# Add port by name +0 ipset add test 2.1.0.3,smtp +# Delete port by number +0 ipset del test 2.1.0.3,25 # List set 0 ipset list test | grep -v Revision: | sed 's/timeout ./timeout x/' > .foo0 && ./sort.sh .foo0 # Check listing -- cgit v1.2.3