X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=includes.c;h=a2b37a32e09b09bad717783171c04a6807910871;hb=5cd4af49acce3c8cdc26003be45a562f82121f09;hp=e2450a8da7e7c52d13bcff0852524b6696c325ed;hpb=a9c694d5b6ea026a0c745e5b650993bf0f1c13dc;p=project%2Ffirewall3.git diff --git a/includes.c b/includes.c index e2450a8..a2b37a3 100644 --- a/includes.c +++ b/includes.c @@ -1,7 +1,7 @@ /* * firewall3 - 3rd OpenWrt UCI firewall implementation * - * Copyright (C) 2013 Jo-Philipp Wich + * Copyright (C) 2013 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -54,7 +54,8 @@ fw3_load_includes(struct fw3_state *state, struct uci_package *p) include->name = e->name; include->enabled = true; - fw3_parse_options(include, fw3_include_opts, s); + if (!fw3_parse_options(include, fw3_include_opts, s)) + warn_elem(e, "has invalid options"); if (!include->enabled) {