summaryrefslogtreecommitdiffhomepage
path: root/src/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/router.c')
-rw-r--r--src/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/router.c b/src/router.c
index 5032428..0040e7a 100644
--- a/src/router.c
+++ b/src/router.c
@@ -354,7 +354,7 @@ static uint32_t calc_ra_lifetime(struct interface *iface, uint32_t maxival)
if (iface->ra_lifetime >= 0) {
lifetime = iface->ra_lifetime;
- if (lifetime < maxival)
+ if (lifetime > 0 && lifetime < maxival)
lifetime = maxival;
else if (lifetime > 9000)
lifetime = 9000;