From d96ae5387799690e1bb2ce52f8f51f0b0e363920 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 10 May 2012 09:42:36 +0200 Subject: Report syntax error messages immediately --- lib/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/parse.c') 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); } -- cgit v1.2.3