From: James Jones Date: Thu, 2 Nov 2023 15:11:45 +0000 (-0500) Subject: Check for node == NULL in xlat_validate_function_arg() (CID #1548367) (#5213) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ced214c9c4506b6aa4fdfca06cdaeea5ec4649a9;p=thirdparty%2Ffreeradius-server.git Check for node == NULL in xlat_validate_function_arg() (CID #1548367) (#5213) --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index 38ec2fbc4b9..49e2ccebb0a 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -428,6 +428,8 @@ static int xlat_validate_function_arg(xlat_arg_parser_t const *arg_p, xlat_exp_t node = xlat_exp_head(arg->group); + if (!node) return -1; + /* * @todo - check arg_p->single, and complain. */