]> granicus.if.org Git - ipset/commitdiff
Report syntax error messages immediately
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 May 2012 07:42:36 +0000 (09:42 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 May 2012 07:42:36 +0000 (09:42 +0200)
lib/parse.c

index afbbbf9599826c8beee6cfbd2f6be159b280f60f..bc11ebbcb5ae28f7804d348b43c359348b5f026a 100644 (file)
@@ -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);
 }