]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set loaded flag before calling proto->init()
authorAlan T. DeKok <aland@freeradius.org>
Sun, 4 Feb 2024 03:16:29 +0000 (22:16 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 4 Feb 2024 03:16:29 +0000 (22:16 -0500)
to prevent recursion

src/lib/util/dict_tokenize.c

index 28d7a58aac234ae77fcf96b991f0375e3b09b16e..38fa37d9b4c324bef0e9402108ccf0054a53ea8f 100644 (file)
@@ -2971,6 +2971,7 @@ int fr_dict_protocol_afrom_file(fr_dict_t **out, char const *proto_name, char co
        /*
         *      Initialize the library.
         */
+       dict->loaded = true;
        if (dict->proto && dict->proto->init) {
                if (dict->proto->init() < 0) goto error;
        }