]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set value to be the nested value array/field when the attribute is an object
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 16 Oct 2019 19:27:18 +0000 (15:27 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 16 Oct 2019 19:27:49 +0000 (15:27 -0400)
src/modules/rlm_rest/rest.c

index 460c1cef56c84a1ef32b2e4a5f362b76609363ae..b06fcb47c14ce7fb2cd27a3f4c90779dc68c4e17 100644 (file)
@@ -1120,6 +1120,11 @@ static int json_pair_alloc(rlm_rest_t const *instance, rlm_rest_section_t const
                                RWDEBUG("Value key missing (skipping)");
                                continue;
                        }
+
+                       /*
+                        *  The value field now becomes the key we're operating on
+                        */
+                       value = tmp;
                }
 
                /*