]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Cast pointer to correct type
authorNick Porter <nick@portercomputing.co.uk>
Thu, 13 Jul 2023 15:47:26 +0000 (16:47 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 13 Jul 2023 15:47:26 +0000 (16:47 +0100)
src/lib/server/main_config.c

index f3864bc2b4c809411778d91bc0add73d4eb67a4f..d15013028b3f7a24decf658e6bc0d7989158c1a5 100644 (file)
@@ -1500,7 +1500,7 @@ int main_config_parse_option(char const *value)
 
        offset = fr_table_value_by_substr(config_arg_table, value, p - value, 0);
        if (offset) {
-               out = (((uintptr_t) main_config) + offset);
+               out = (bool *) (((uintptr_t) main_config) + offset);
 
        } else if (strncmp(p, "pair_legacy_nested", p - value) != 0) {
                out = &fr_pair_legacy_nested;