Skip to content

Commit

Permalink
Initialise temporary box in cond_eval
Browse files Browse the repository at this point in the history
Caused issues if we tried to print the value directly
  • Loading branch information
arr2036 committed May 21, 2018
1 parent 36a195a commit ec3d5ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/cond_eval.c
Expand Up @@ -516,6 +516,8 @@ do {\
ssize_t ret;
fr_value_box_t data;

memset(&data, 0, sizeof(data));

if (map->rhs->type != TMPL_TYPE_UNPARSED) {
char *p;

Expand Down

0 comments on commit ec3d5ca

Please sign in to comment.