Skip to content

Commit

Permalink
reparse 'case &User-Name' only if it was not parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 18, 2014
1 parent 8a99a62 commit 7a453e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/modcall.c
Expand Up @@ -3142,11 +3142,9 @@ bool modcall_pass2(modcallable *mc)
* all of the modules have been loaded.
* Check for that now.
*/
if (this->name &&
if (!g->vpt && this->name &&
(this->name[0] == '&') &&
(cf_section_name2_type(g->cs) == T_BARE_WORD)) {
talloc_free(g->vpt); /* it's been parsed as a LITERAL */

g->vpt = radius_str2tmpl(g->cs, this->name,
cf_section_name2_type(g->cs),
REQUEST_CURRENT, PAIR_LIST_REQUEST);
Expand Down

0 comments on commit 7a453e7

Please sign in to comment.