From: Alan T. DeKok Date: Thu, 27 May 2021 13:41:20 +0000 (-0400) Subject: don't parse clients twice X-Git-Tag: release_3_0_23~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a71ed523e1745e4fbbe1d827efee4bb395439620;p=thirdparty%2Ffreeradius-server.git don't parse clients twice --- diff --git a/src/main/client.c b/src/main/client.c index 7f4d6545bb9..59dbe670fba 100644 --- a/src/main/client.c +++ b/src/main/client.c @@ -575,9 +575,12 @@ RADCLIENT_LIST *client_list_parse_section(CONF_SECTION *section, UNUSED bool tls } if (cf_top_section(section) == section) { + if (clients->parsed) return clients; + global = true; clients->name = "global"; clients->server = NULL; + clients->parsed = true; } if (strcmp("server", cf_section_name1(section)) == 0) {