]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add check for NULL from fr_value_box_alloc_null() (CID #1469164) (#4487)
authorJames Jones <jejones3141@gmail.com>
Thu, 5 May 2022 21:54:22 +0000 (16:54 -0500)
committerGitHub <noreply@github.com>
Thu, 5 May 2022 21:54:22 +0000 (23:54 +0200)
src/lib/json/jpath.c

index 1c776dd6210c5f846194d41f0b9b11c039d1cdd0..8f1a0c774612397dc3cefc03601c3437136364ac 100644 (file)
@@ -349,7 +349,7 @@ static int jpath_evaluate(TALLOC_CTX *ctx, fr_value_box_list_t *tail,
         *      we now attempt conversion of the leaf to
         *      the specified value.
         */
-       value = fr_value_box_alloc_null(ctx);
+       MEM(value = fr_value_box_alloc_null(ctx));
        if (fr_json_object_to_value_box(value, value, object, dst_enumv, true) < 0) {
                talloc_free(value);
                return -1;