]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return NULL on error
authorAlan T. DeKok <aland@freeradius.org>
Fri, 26 Jan 2024 21:28:20 +0000 (16:28 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 Jan 2024 21:28:20 +0000 (16:28 -0500)
src/lib/util/dict_fixup.c

index d836255926e85c74d88b0502d9383d6ecd8d02b4..37ee7a00263a4460dadd623441b53492dae9afb7 100644 (file)
@@ -270,7 +270,7 @@ static fr_dict_attr_t const *dict_find_or_load_reference(fr_dict_t **dict_def, c
                        return NULL;
                }
 
-               if (dict->proto->init && (dict->proto->init() < 0)) return -1;
+               if (dict->proto->init && (dict->proto->init() < 0)) return NULL;
 
                /*
                 *      The reference is to the root of the foreign protocol, we're done.