]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix possible uninitialized value 8697/head
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 19 May 2021 11:59:00 +0000 (14:59 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 19 May 2021 11:59:00 +0000 (14:59 +0300)
Found by Coverity.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
zebra/connected.c

index 883334d509b610b17ee8a21ccd6bb1b630cce4e1..d110ccf6dde002f7b43b41e55ed75ed92d5de922 100644 (file)
@@ -277,7 +277,7 @@ void connected_up(struct interface *ifp, struct connected *ifc)
         * resolve to the same network and mask
         */
        for (ALL_LIST_ELEMENTS_RO(ifp->connected, cnode, c)) {
-               struct prefix cp;
+               struct prefix cp = {0};
 
                PREFIX_COPY(&cp, CONNECTED_PREFIX(c));
                apply_mask(&cp);