]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Initialise temporary box in cond_eval
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 May 2018 17:23:09 +0000 (23:23 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 May 2018 17:23:09 +0000 (23:23 +0600)
Caused issues if we tried to print the value directly

src/main/cond_eval.c

index 5eb9fcb64220a327cb2a068e487c6da55f78f5e2..148bb1a496327f225035e09820f867279d714918 100644 (file)
@@ -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;