* %{request:Tunnel-Password:1[#]}
* %{mod:foo}
*/
- brace = NULL;
/*
* This is for efficiency, so we don't search for an xlat,
if (isspace((int) *q)) break;
- if (*q == '[') {
- is_attr = true;
- continue;
- }
+ if (*q == '[') continue;
if (*q == '}') break;
}
*/
if ((*q == '}') && (q == p)) {
*error = "Empty expression is invalid";
- return -(q - fmt);
+ return -(p - fmt);
}
/*
talloc_free(node);
*error = "Unknown attribute";
- return -(node->fmt - fmt);
+ return -(p - fmt);
}
node->type = XLAT_ATTRIBUTE;