]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ensure the list is freed
authorAlan T. DeKok <aland@freeradius.org>
Sat, 27 Jan 2024 13:31:01 +0000 (08:31 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 27 Jan 2024 13:31:01 +0000 (08:31 -0500)
src/lib/util/dict_util.c

index ca7f3657777cc1f2a63ba90d636db532bd6bdbde..1b2876c4a9ab8985688d9d9fcf1eb327b44c1089 100644 (file)
@@ -3303,7 +3303,7 @@ static int dict_autoref_free(fr_dict_t *dict)
 
        if (!dict->autoref) return 0;
 
-       if (fr_hash_table_flatten(NULL, (void ***)&refd_list, dict->autoref) < 0) {
+       if (fr_hash_table_flatten(dict->autoref, (void ***)&refd_list, dict->autoref) < 0) {
                fr_strerror_const("failed flattening autoref hash table");
                return -1;
        }