projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
firewall3: check the return value of fw3_parse_options()
[project/firewall3.git]
/
includes.c
diff --git
a/includes.c
b/includes.c
index a9a75cbdaedd5b7aa8aab01d264b4faa4720af51..a2b37a32e09b09bad717783171c04a6807910871 100644
(file)
--- a/
includes.c
+++ b/
includes.c
@@
-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)
{