From: Nick Porter Date: Fri, 15 Apr 2022 13:38:12 +0000 (+0100) Subject: Check xlat_registered didn't return NULL before dereferencing. CID #1504055 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=457268554287b0a9fd9890694d1de9bff0abd25e;p=thirdparty%2Ffreeradius-server.git Check xlat_registered didn't return NULL before dereferencing. CID #1504055 --- diff --git a/src/lib/unlang/foreach.c b/src/lib/unlang/foreach.c index bcd9775ebc6..295f7a9bfcf 100644 --- a/src/lib/unlang/foreach.c +++ b/src/lib/unlang/foreach.c @@ -225,8 +225,8 @@ void unlang_foreach_init(void) x = xlat_register(NULL, xlat_foreach_names[i], unlang_foreach_xlat, XLAT_FLAG_NEEDS_ASYNC); - x->uctx = &xlat_foreach_inst[i]; fr_assert(x); + x->uctx = &xlat_foreach_inst[i]; xlat_internal(x); }