From be315919fa4ca9cb38861ce5c29abd0f32543092 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 6 May 2016 20:09:09 +0000 Subject: [PATCH] Fix a bogus clang analyzer warning on BSD by moving an assignment slightly higher up. --- ipv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipv6.c b/ipv6.c index 520ddcf3..a22f2e11 100644 --- a/ipv6.c +++ b/ipv6.c @@ -1208,8 +1208,8 @@ ipv6_addlinklocal(struct interface *ifp) if (ap == NULL) return -1; + dadcounter = 0; if (ifp->options->options & DHCPCD_SLAACPRIVATE) { - dadcounter = 0; nextslaacprivate: if (ipv6_makestableprivate(&ap->addr, &ap->prefix, ap->prefix_len, ifp, &dadcounter) == -1) -- 2.47.3