From: anlan_cs Date: Wed, 4 Aug 2021 12:47:45 +0000 (-0400) Subject: ospfd: fix coverity warning of one field initialization X-Git-Tag: base_8.1~236^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F9294%2Fhead;p=mirror%2Ffrr.git ospfd: fix coverity warning of one field initialization Add the initialization of prefixlen field in struct prefix. Signed-off-by: anlan_cs --- diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index e0e61a2664..eb7a8348e8 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -1459,6 +1459,7 @@ void ospf_reset_hello_timer(struct interface *ifp, struct in_addr addr, p.u.prefix4 = addr; p.family = AF_INET; + p.prefixlen = IPV4_MAX_BITLEN; oi = ospf_if_table_lookup(ifp, &p);