diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-01-09 23:34:44 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-01-09 23:34:44 +0100 |
commit | deed8b834253104394c589c1fa718d9b949de943 (patch) | |
tree | 55caa5d005bf8bfb06aaa0fde12ae54180fd7ec0 | |
parent | 96f32b9e6fe70bae429c1feb2c711e1293f3a31d (diff) |
Fix error path when protocol number is used with port range
-rw-r--r-- | lib/parse.c | 4 |
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)); |