Merge pull request #8697 from idryzhov/fix-zebra-con

zebra: fix possible uninitialized value
This commit is contained in:
Donatas Abraitis 2021-05-20 09:31:02 +03:00 committed by GitHub
commit 3532ab1ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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);