mcnewton/freeradius-server — comment on commit 51004e0ef3b409058f345c514fcfd556fb96c45b
File: src/main/tls.c line 2078
By alandekok:

static is bad!

Instead, see cf_data_add(), and cf_data_find().

this function should call cf_data_find() on the input cs. Use a key like "tls". If it finds a pointer, return it.

Otherwise, parse the config section, and then call cf_data_add() to cache it in the CONF_SECTION structure.

This is probably less code, has no static variables, and is easier to understand.