diff options
author | Kozlov Dmitry <dima@server> | 2011-08-24 18:29:10 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-08-24 18:29:10 +0400 |
commit | 52223ac31751a5ec0bd8be3beb3fdd0559353b54 (patch) | |
tree | 5bd0f19bd0c7908b3adda362dfc0de0709559e34 /accel-pppd/radius/auth.c | |
parent | fd88c1f5973cba63c3b001d02d2c668344c75736 (diff) | |
download | accel-ppp-52223ac31751a5ec0bd8be3beb3fdd0559353b54.tar.gz accel-ppp-52223ac31751a5ec0bd8be3beb3fdd0559353b54.zip |
radius: better radius server fails handling
Diffstat (limited to 'accel-pppd/radius/auth.c')
-rw-r--r-- | accel-pppd/radius/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/radius/auth.c b/accel-pppd/radius/auth.c index e4810fa6..639284a5 100644 --- a/accel-pppd/radius/auth.c +++ b/accel-pppd/radius/auth.c @@ -151,7 +151,7 @@ static int rad_auth_send(struct rad_req_t *req) while (1) { if (rad_server_req_enter(req)) { - if (rad_server_realloc(req, 0)) { + if (rad_server_realloc(req, RAD_SERV_AUTH)) { log_ppp_warn("radius: no available servers\n"); break; } @@ -198,7 +198,7 @@ static int rad_auth_send(struct rad_req_t *req) if (!req->reply) { rad_server_fail(req->serv); - if (rad_server_realloc(req, 0)) { + if (rad_server_realloc(req, RAD_SERV_AUTH)) { log_ppp_warn("radius: no available servers\n"); break; } |