From: Jozsef Kadlecsik Date: Thu, 10 May 2012 07:42:36 +0000 (+0200) Subject: Report syntax error messages immediately X-Git-Tag: v6.12.1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d96ae5387799690e1bb2ce52f8f51f0b0e363920;p=ipset Report syntax error messages immediately --- diff --git a/lib/parse.c b/lib/parse.c index afbbbf9..bc11ebb 100644 --- a/lib/parse.c +++ b/lib/parse.c @@ -1643,7 +1643,7 @@ ipset_call_parser(struct ipset_session *session, if (ipset_data_flags_test(data, IPSET_FLAG(arg->opt)) && !(arg->opt == IPSET_OPT_FAMILY && ipset_data_test_ignored(data, IPSET_OPT_FAMILY))) - syntax_err("%s already specified", arg->name[0]); + return syntax_err("%s already specified", arg->name[0]); return arg->parse(session, arg->opt, str); }