From 2602d9907e20d890c827409c8240acafee0c4abc Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 19 Aug 2018 21:05:39 +0100 Subject: [PATCH] Consistency --- src/ipv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipv6.c b/src/ipv6.c index 8a2cb9f8..49de6860 100644 --- a/src/ipv6.c +++ b/src/ipv6.c @@ -430,7 +430,7 @@ ipv6_mask(struct in6_addr *mask, int len) bits = len % NBBY; for (i = 0; i < bytes; i++) mask->s6_addr[i] = 0xff; - if (bits) { + if (bits != 0) { /* Coverify false positive. * bytelen cannot be 16 if bitlen is non zero */ /* coverity[overrun-local] */ -- 2.47.2