X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fra.c;h=122f99eea4a1701f814a0d7c62e229777a94075e;hb=c3bbeced0f204b6b9571148ae84227105baaf179;hp=04764c7386ddea8327c65fa5ce7c36c12c6963cc;hpb=2bf5f3ad1ce6d386938c39d1569f2635300eca6e;p=odhcp6c.git 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; }