projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2354774
)
Don't go to next sibling on empty case. Fixes #1274
author
Alan T. DeKok
<aland@freeradius.org>
Mon, 28 Sep 2015 13:28:43 +0000
(09:28 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 28 Sep 2015 13:28:43 +0000
(09:28 -0400)
src/main/modcall.c
patch
|
blob
|
history
diff --git
a/src/main/modcall.c
b/src/main/modcall.c
index
f2e15ee
..
ad148a4
100644
(file)
--- a/
src/main/modcall.c
+++ b/
src/main/modcall.c
@@
-619,6
+619,11
@@
redo:
* MOD_GROUP.
*/
if (!g->children) {
+ if (c->type == MOD_CASE) {
+ result = RLM_MODULE_NOOP;
+ goto calculate_result;
+ }
+
RDEBUG2("%.*s%s %s { ... } # empty sub-section is ignored",
depth + 1, modcall_spaces, group_name[c->type], c->name);
goto next_sibling;