summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/req.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2011-08-16 18:11:12 +0400
committerKozlov Dmitry <dima@server>2011-08-16 18:11:12 +0400
commitfd52e4578dcc7de2301480fece9395563d643045 (patch)
treef0fade621eee24248f19334759a159ace5dc0665 /accel-pppd/radius/req.c
parent3b04c12e021c35d71d8b690b54b7f96ce6a24576 (diff)
downloadaccel-ppp-fd52e4578dcc7de2301480fece9395563d643045.tar.gz
accel-ppp-fd52e4578dcc7de2301480fece9395563d643045.zip
multiple radius support (testing)
Diffstat (limited to 'accel-pppd/radius/req.c')
-rw-r--r--accel-pppd/radius/req.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c
index f3d72f83..b45a601b 100644
--- a/accel-pppd/radius/req.c
+++ b/accel-pppd/radius/req.c
@@ -126,8 +126,10 @@ int rad_req_acct_fill(struct rad_req_t *req)
return -1;
if (rad_packet_add_int(req->pack, NULL, "Acct-Output-Gigawords", 0))
return -1;
- if (rad_packet_add_int(req->pack, NULL, "Acct-Delay-Time", 0))
- return -1;
+ if (conf_acct_delay_time) {
+ if (rad_packet_add_int(req->pack, NULL, "Acct-Delay-Time", 0))
+ return -1;
+ }
if (rad_packet_add_ipaddr(req->pack, NULL, "Framed-IP-Address", req->rpd->ppp->peer_ipaddr))
return -1;