From: Arran Cudbard-Bell Date: Mon, 23 Jan 2017 17:55:55 +0000 (+0000) Subject: Fix assert X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2cb766fe4e91b014d69ab5b3fd9567e2e760b0c;p=thirdparty%2Ffreeradius-server.git Fix assert --- diff --git a/src/main/map.c b/src/main/map.c index 6d448efbaf3..ee89f6125c5 100644 --- a/src/main/map.c +++ b/src/main/map.c @@ -923,7 +923,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons vp = fr_pair_cursor_remove(&from); talloc_free(vp); - if (new->vp_type == PW_TYPE_STRING) rad_assert(new->vp_strvalue != NULL); + rad_assert((new->vp_type != PW_TYPE_STRING) || (new->vp_strvalue != NULL)); new->op = map->op; new->tag = map->lhs->tmpl_tag;