]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
fixed wrong object name in json_object_all_values_equal 273/head
authorAlexey Konovalov <alexey.konovalov@f-secure.com>
Tue, 27 Sep 2016 08:20:49 +0000 (11:20 +0300)
committerAlexey Konovalov <alexey.konovalov@f-secure.com>
Tue, 27 Sep 2016 08:20:49 +0000 (11:20 +0300)
json_object.c

index f657afe55c279da6dc8c2c570ca4e963bc07f289..6eb7ce6462c905da569dd20faee3ed45c17dff2c 100644 (file)
@@ -1062,7 +1062,7 @@ static int json_object_all_values_equal(struct json_object* jso1,
 
        /* Iterate over jso1 keys and see if they exist and are equal in jso2 */
         json_object_object_foreachC(jso1, iter) {
-               if (!lh_table_lookup_ex(jso1->o.c_object, (void*)iter.key,
+               if (!lh_table_lookup_ex(jso2->o.c_object, (void*)iter.key,
                                        (void**)&sub))
                        return 0;
                if (!json_object_equal(iter.val, sub))