diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2018-04-03 17:07:24 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2018-04-03 17:07:24 +0300 |
commit | 812de98ddd34825d7103dad51c07642e99362e1a (patch) | |
tree | 70dbe6be83d9c86fa92422ec08ed83eb4735c8be /accel-pppd/ctrl/ipoe | |
parent | 9534b6695a4ce3f816d77df73e5d9ec85a0bca59 (diff) | |
download | accel-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/ctrl/ipoe')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 4 |
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) |