summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ra.c b/src/ra.c
index 04764c7..122f99e 100644
--- a/src/ra.c
+++ b/src/ra.c
@@ -239,7 +239,7 @@ static bool ra_icmpv6_valid(struct sockaddr_in6 *source, int hlim, uint8_t *data
int ra_conf_hoplimit(int newvalue)
{
static int value = 0;
- if (newvalue > value)
+ if (newvalue > 0)
value = newvalue;
return value;
}