From 812de98ddd34825d7103dad51c07642e99362e1a Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 3 Apr 2018 17:07:24 +0300 Subject: ipoe: assign default values to verbose and unit-cache if not specified on config reload --- accel-pppd/ctrl/ipoe/ipoe.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accel-pppd') 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) -- cgit v1.2.3