]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allocation may fail. CID #1420939
authorAlan T. DeKok <aland@freeradius.org>
Fri, 10 Nov 2017 21:00:37 +0000 (16:00 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 10 Nov 2017 21:00:37 +0000 (16:00 -0500)
src/main/cond_eval.c

index 96828bc76210ce5fc509fe710fedba8c96d18663..690a5048b57870a7f9c0dd1e53d087f5b4a27431 100644 (file)
@@ -287,7 +287,7 @@ static int cond_cmp_values(REQUEST *request, fr_cond_t const *c, fr_value_box_t
                EVAL_DEBUG("CMP WITH PAIRCOMPARE");
                rad_assert(map->lhs->type == TMPL_TYPE_ATTR);
 
-               vp = fr_pair_afrom_da(request, map->lhs->tmpl_da);
+               MEM(vp = fr_pair_afrom_da(request, map->lhs->tmpl_da));
                vp->op = c->data.map->op;
 
                fr_value_box_copy(vp, &vp->data, rhs);