From: Alan T. DeKok Date: Fri, 26 Jan 2024 21:28:20 +0000 (-0500) Subject: return NULL on error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aab2801e33bc0004cdac4a6bef19215574b90441;p=thirdparty%2Ffreeradius-server.git return NULL on error --- diff --git a/src/lib/util/dict_fixup.c b/src/lib/util/dict_fixup.c index d836255926e..37ee7a00263 100644 --- a/src/lib/util/dict_fixup.c +++ b/src/lib/util/dict_fixup.c @@ -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.