summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-01-09 23:34:44 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-01-09 23:34:44 +0100
commitdeed8b834253104394c589c1fa718d9b949de943 (patch)
tree55caa5d005bf8bfb06aaa0fde12ae54180fd7ec0
parent96f32b9e6fe70bae429c1feb2c711e1293f3a31d (diff)
Fix error path when protocol number is used with port range
-rw-r--r--lib/parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/parse.c b/lib/parse.c
index 951d2f3..679aefc 100644
--- a/lib/parse.c
+++ b/lib/parse.c
@@ -614,7 +614,9 @@ ipset_parse_proto_port(struct ipset_session *session,
default:
if (!STREQ(a, "0")) {
syntax_err("Protocol %s can be used "
- "with pseudo port value 0 only.");
+ "with pseudo port value 0 only.",
+ tmp);
+ err = -1;
goto error;
}
ipset_data_flags_set(data, IPSET_FLAG(opt));