summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/radius.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2011-05-25 16:39:10 +0400
committerKozlov Dmitry <dima@server>2011-05-25 16:40:17 +0400
commita06c41c335789d7c3154422d3f60481e26feb1b0 (patch)
tree6b50cdc5dc2f3e137a5e9ef30bdab5a57efc632a /accel-pppd/radius/radius.c
parent85b204590c8d2ed028405330ca67cbd8c6dd25f9 (diff)
downloadaccel-ppp-xebd-a06c41c335789d7c3154422d3f60481e26feb1b0.tar.gz
accel-ppp-xebd-a06c41c335789d7c3154422d3f60481e26feb1b0.zip
radius: fix incorrect reading acct-timeout option
Diffstat (limited to 'accel-pppd/radius/radius.c')
-rw-r--r--accel-pppd/radius/radius.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c
index edf3120..1900e0f 100644
--- a/accel-pppd/radius/radius.c
+++ b/accel-pppd/radius/radius.c
@@ -25,7 +25,7 @@
int conf_max_try = 3;
int conf_timeout = 3;
-int conf_acct_timeout = 600;
+int conf_acct_timeout = 3;
char *conf_nas_identifier;
in_addr_t conf_nas_ip_address;
in_addr_t conf_gw_ip_address;
@@ -460,7 +460,7 @@ static int load_config(void)
conf_timeout = atoi(opt);
opt = conf_get_opt("radius", "acct-timeout");
- if (opt && atoi(opt) > 0)
+ if (opt && atoi(opt) >= 0)
conf_acct_timeout = atoi(opt);
opt = conf_get_opt("radius", "verbose");