]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check if the dictionaries are compatible.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Sep 2024 15:37:06 +0000 (11:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Sep 2024 19:05:25 +0000 (15:05 -0400)
don't check if the ptrs are equal

src/bin/unit_test_module.c

index c36d919f3fc14948cb2ecfb5572fe76701bb023a..df73e0507afd180f3653a778700479cd2f239e9b 100644 (file)
@@ -941,7 +941,7 @@ int main(int argc, char *argv[])
         *      Do some sanity checking.
         */
        dict_check = virtual_server_dict_by_name("default");
-       if (!dict_check || (dict_check != dict_protocol)) {
+       if (!dict_check || !fr_dict_compatible(dict_check, dict_protocol)) {
                ERROR("Virtual server namespace does not match requested namespace '%s'", PROTOCOL_NAME);
                EXIT_WITH_FAILURE;
        }