]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
lint.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 7 Jul 2016 10:31:50 +0000 (10:31 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 7 Jul 2016 10:31:50 +0000 (10:31 +0000)
git-svn-id: file:///svn/unbound/trunk@3813 be551aaa-1e26-0410-a405-d3ace91eadb9

services/outside_network.c

index b915c61457c2f78cf91fb62bf5613dbf9b66478d..8d6e873113ceecd4a166ac556fac7264290e7064 100644 (file)
@@ -902,7 +902,7 @@ sai6_putrandom(struct sockaddr_in6 *sa, int pfxlen, struct ub_randstate *rnd)
        if(!(pfxlen > 0 && pfxlen < 128))
                return;
        for(i = 0; i < (128 - pfxlen) / 8; i++) {
-               sa->sin6_addr.s6_addr[15-i] = ub_random_max(rnd, 256);
+               sa->sin6_addr.s6_addr[15-i] = (uint8_t)ub_random_max(rnd, 256);
        }
        last = pfxlen & 7;
        if(last != 0) {