From: Jozsef Kadlecsik Date: Wed, 9 Jan 2013 22:34:44 +0000 (+0100) Subject: Fix error path when protocol number is used with port range X-Git-Tag: v6.17~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deed8b834253104394c589c1fa718d9b949de943;p=ipset Fix error path when protocol number is used with port range --- 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));