Skip to content

Commit

Permalink
The dynamic client server can return updated too.
Browse files Browse the repository at this point in the history
We probably want to at least warn when it's not OK and not UPDATED
  • Loading branch information
arr2036 committed Feb 3, 2015
1 parent c16a0bb commit fdc1294
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/main/listen.c
Expand Up @@ -273,7 +273,27 @@ RADCLIENT *client_listener_find(rad_listen_t *listener,

RDEBUG("} # server %s", request->server);

if (rcode != RLM_MODULE_OK) {
switch (rcode) {
case RLM_MODULE_OK:
case RLM_MODULE_UPDATED:
break;

/*
* Likely a fatal error we want to warn the user about
*/
case RLM_MODULE_INVALID:
case RLM_MODULE_FAIL:
ERROR("Virtual-Server %s returned %s, creating dynamic client failed", request->server,
fr_int2str(mod_rcode_table, rcode, "<INVALID>"));
talloc_free(request);
goto unknown;

/*
* Probably the result of policy, or the client not existing.
*/
default:
DEBUG("Virtual-Server %s returned %s, ignoring client", request->server,
fr_int2str(mod_rcode_table, rcode, "<INVALID>"));
talloc_free(request);
goto unknown;
}
Expand Down

0 comments on commit fdc1294

Please sign in to comment.