Skip to content

Commit

Permalink
-Wshadow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed May 1, 2015
1 parent f7b9d53 commit 39d8296
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/client.c
Expand Up @@ -278,7 +278,7 @@ int client_add(RADCLIENT_LIST *clients, RADCLIENT *client)
if (!clients) {
if (client->server != NULL) {
CONF_SECTION *cs;
CONF_SECTION *listen;
CONF_SECTION *subcs;

cs = cf_section_sub_find_name2(mainconfig.config,
"server", client->server);
Expand All @@ -292,8 +292,8 @@ int client_add(RADCLIENT_LIST *clients, RADCLIENT *client)
* If this server has no "listen" section, add the clients
* to the global client list.
*/
listen = cf_section_sub_find(cs, "listen");
if (!listen) goto global_clients;
subcs = cf_section_sub_find(cs, "listen");
if (!subcs) goto global_clients;

/*
* If the client list already exists, use that.
Expand Down

0 comments on commit 39d8296

Please sign in to comment.