From: Steven Barth Date: Fri, 10 Apr 2015 11:31:56 +0000 (+0200) Subject: Sanitize RA values less X-Git-Tag: debian/1.1+git20160131-1~24 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c3bbeced0f204b6b9571148ae84227105baaf179;p=odhcp6c.git Sanitize RA values less --- 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; }