summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl/l2tp')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index dd8b81bb..15887972 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -1612,12 +1612,12 @@ static void load_config(void)
const char *opt;
opt = conf_get_opt("l2tp", "verbose");
- if (opt && atoi(opt) > 0)
- conf_verbose = 1;
+ if (opt && atoi(opt) >= 0)
+ conf_verbose = atoi(opt) > 0;
opt = conf_get_opt("l2tp", "avp_permissive");
- if (opt && atoi(opt) > 0)
- conf_avp_permissive = 1;
+ if (opt && atoi(opt) >= 0)
+ conf_avp_permissive = atoi(opt) > 0;
opt = conf_get_opt("l2tp", "hello-interval");
if (opt && atoi(opt) > 0)