From c3bbeced0f204b6b9571148ae84227105baaf179 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 10 Apr 2015 13:31:56 +0200 Subject: [PATCH] Sanitize RA values less --- src/ra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1