diff options
author | Kozlov Dmitry <dima@server> | 2011-08-16 18:11:12 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-08-16 18:11:12 +0400 |
commit | fd52e4578dcc7de2301480fece9395563d643045 (patch) | |
tree | f0fade621eee24248f19334759a159ace5dc0665 /accel-pppd/radius/acct.c | |
parent | 3b04c12e021c35d71d8b690b54b7f96ce6a24576 (diff) | |
download | accel-ppp-fd52e4578dcc7de2301480fece9395563d643045.tar.gz accel-ppp-fd52e4578dcc7de2301480fece9395563d643045.zip |
multiple radius support (testing)
Diffstat (limited to 'accel-pppd/radius/acct.c')
-rw-r--r-- | accel-pppd/radius/acct.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/accel-pppd/radius/acct.c b/accel-pppd/radius/acct.c index 66dcbb4..4f1d901 100644 --- a/accel-pppd/radius/acct.c +++ b/accel-pppd/radius/acct.c @@ -304,16 +304,16 @@ int rad_acct_start(struct radius_pd_t *rpd) rad_server_req_exit(rpd->acct_req); - if (!rpd->acct_req->reply) { - rad_server_fail(rpd->acct_req->serv); - if (rad_server_realloc(rpd->acct_req, 1)) { - log_ppp_warn("radius:acct_start: no servers available\n"); - goto out_err; - } - if (req_set_RA(rpd->acct_req, rpd->acct_req->serv->acct_secret)) - goto out_err; - } else + if (rpd->acct_req->reply) break; + + rad_server_fail(rpd->acct_req->serv); + if (rad_server_realloc(rpd->acct_req, 1)) { + log_ppp_warn("radius:acct_start: no servers available\n"); + goto out_err; + } + if (req_set_RA(rpd->acct_req, rpd->acct_req->serv->acct_secret)) + goto out_err; } rpd->acct_req->hnd.read = rad_acct_read; |