summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp_lcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ppp/ppp_lcp.c')
-rw-r--r--accel-pppd/ppp/ppp_lcp.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c
index 58c21dc..cc07997 100644
--- a/accel-pppd/ppp/ppp_lcp.c
+++ b/accel-pppd/ppp/ppp_lcp.c
@@ -857,11 +857,19 @@ static void load_config(void)
char *opt;
opt = conf_get_opt("lcp", "echo-interval");
- if (opt && atoi(opt) > 0)
+ if (opt && atoi(opt) >= 0)
conf_echo_interval = atoi(opt);
opt = conf_get_opt("lcp", "echo-failure");
- if (opt && atoi(opt) > 0)
+ if (opt && atoi(opt) >= 0)
+ conf_echo_failure = atoi(opt);
+
+ opt = conf_get_opt("ppp", "lcp-echo-interval");
+ if (opt && atoi(opt) >= 0)
+ conf_echo_interval = atoi(opt);
+
+ opt = conf_get_opt("ppp", "lcp-echo-failure");
+ if (opt && atoi(opt) >= 0)
conf_echo_failure = atoi(opt);
}