From: Alan T. DeKok Date: Mon, 8 Sep 2014 15:29:49 +0000 (-0400) Subject: Find the SUB section, not the NEXT one X-Git-Tag: release_3_0_5~593 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68fc9e7fa9e4fdfed52d1fec46b759ff4c93ca41;p=thirdparty%2Ffreeradius-server.git Find the SUB section, not the NEXT one --- diff --git a/src/main/client.c b/src/main/client.c index 79e71c891e1..7751d79fcc9 100644 --- a/src/main/client.c +++ b/src/main/client.c @@ -209,7 +209,7 @@ int client_add(RADCLIENT_LIST *clients, RADCLIENT *client) if (client->server != NULL) { CONF_SECTION *cs; - cs = cf_section_find_name2(main_config.config, + cs = cf_section_sub_find_name2(main_config.config, "server", client->server); if (!cs) { radlog(L_ERR, "Failed to find virtual server %s",