Skip to content

Commit

Permalink
Merge pull request #60 from skarss/bugfix-authserver-REJECT_RC
Browse files Browse the repository at this point in the history
Disable failover to next RADIUS server on REJECT_RC.
  • Loading branch information
alandekok committed Jul 14, 2015
2 parents 6e23d62 + 02548aa commit 06b389a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/buildreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int rc_aaa(rc_handle *rh, uint32_t client_port, VALUE_PAIR *send, VALUE_PAIR **r

skip_count = 0;
result = ERROR_RC;
for (i=0; (i < aaaserver->max) && (result != OK_RC) && (result != BADRESP_RC)
for (i=0; (i < aaaserver->max) && (result != OK_RC) && (result != REJECT_RC)
; i++, now = rc_getctime())
{
if (aaaserver->deadtime_ends[i] != -1 &&
Expand All @@ -140,11 +140,11 @@ int rc_aaa(rc_handle *rh, uint32_t client_port, VALUE_PAIR *send, VALUE_PAIR **r
if (result == TIMEOUT_RC && radius_deadtime > 0)
aaaserver->deadtime_ends[i] = start_time + (double)radius_deadtime;
}
if (result == OK_RC || result == BADRESP_RC || skip_count == 0)
if (result == OK_RC || result == REJECT_RC || skip_count == 0)
goto exit;

result = ERROR_RC;
for (i=0; (i < aaaserver->max) && (result != OK_RC) && (result != BADRESP_RC)
for (i=0; (i < aaaserver->max) && (result != OK_RC) && (result != REJECT_RC)
; i++)
{
if (aaaserver->deadtime_ends[i] == -1 ||
Expand Down

0 comments on commit 06b389a

Please sign in to comment.