From: Alan T. DeKok Date: Sun, 5 Dec 2021 13:40:49 +0000 (-0500) Subject: shut up clang X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51d96e38897e418413c3cf11a50785b62fd4fdcf;p=thirdparty%2Ffreeradius-server.git shut up clang --- diff --git a/src/lib/server/cond_eval.c b/src/lib/server/cond_eval.c index ef01cc2e3ea..24db8a98533 100644 --- a/src/lib/server/cond_eval.c +++ b/src/lib/server/cond_eval.c @@ -528,6 +528,7 @@ static bool cond_compare_attrs(request_t *request, fr_value_box_t *lhs, map_t co if (tmpl_is_attr(map->lhs) && fr_type_is_null(map->lhs->cast)) da = tmpl_da(map->lhs); + fr_assert(lhs != NULL); rhs = NULL; /* shut up clang scan */ fr_value_box_init_null(&rhs_cast); @@ -541,7 +542,7 @@ static bool cond_compare_attrs(request_t *request, fr_value_box_t *lhs, map_t co break; } - fr_assert(lhs->type == rhs->type); + fr_assert(rhs && (lhs->type == rhs->type)); rcode = fr_value_box_cmp_op(map->op, lhs, rhs);