summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2018-04-03 17:07:24 +0300
committerDmitry Kozlov <xeb@mail.ru>2018-04-03 17:07:24 +0300
commit812de98ddd34825d7103dad51c07642e99362e1a (patch)
tree70dbe6be83d9c86fa92422ec08ed83eb4735c8be /accel-pppd
parent9534b6695a4ce3f816d77df73e5d9ec85a0bca59 (diff)
downloadaccel-ppp-812de98ddd34825d7103dad51c07642e99362e1a.tar.gz
accel-ppp-812de98ddd34825d7103dad51c07642e99362e1a.zip
ipoe: assign default values to verbose and unit-cache if not specified on config reload
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 5fd64e2a..bc7f7272 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -3672,6 +3672,8 @@ static void load_config(void)
opt = conf_get_opt("ipoe", "verbose");
if (opt)
conf_verbose = atoi(opt);
+ else
+ conf_verbose = 0;
opt = conf_get_opt("ipoe", "lease-time");
if (opt)
@@ -3694,6 +3696,8 @@ static void load_config(void)
opt = conf_get_opt("ipoe", "unit-cache");
if (opt)
conf_unit_cache = atoi(opt);
+ else
+ conf_unit_cache = 0;
opt = conf_get_opt("ipoe", "l4-redirect-table");
if (opt && atoi(opt) > 0)