summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 70c5710a..126a0062 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -4060,7 +4060,7 @@ static void load_config(void)
opt = conf_get_opt("ipoe", "check-ip");
if (!opt)
opt = conf_get_opt("common", "check-ip");
- if (opt)
+ if (opt && atoi(opt) >= 0)
conf_check_exists = atoi(opt) > 0;
#ifdef RADIUS