projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6729594
)
Fail if we can't find an xlat by this name
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 14 Nov 2014 19:18:29 +0000
(14:18 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 24 Nov 2014 22:07:05 +0000
(17:07 -0500)
src/main/xlat.c
patch
|
blob
|
history
diff --git
a/src/main/xlat.c
b/src/main/xlat.c
index
5d13433
..
cabb6f0
100644
(file)
--- a/
src/main/xlat.c
+++ b/
src/main/xlat.c
@@
-906,11
+906,18
@@
bool xlat_register_redundant(CONF_SECTION *cs)
ci != NULL;
ci = cf_item_find_next(cs, ci)) {
if (!cf_item_is_pair(ci)) continue;
+
+ if (!xlat_find(cf_pair_attr(cf_itemtopair(ci)))) {
+ talloc_free(xr);
+ return false;
+ }
+
xr->count++;
}
}
if (xlat_register(name2, xlat_redundant, NULL, xr) < 0) {
+ talloc_free(xr);
return false;
}