From 46a8c343240926260058eadbc6f38254679e9390 Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Wed, 4 Aug 2021 08:47:45 -0400 Subject: [PATCH] ospfd: fix coverity warning of one field initialization Add the initialization of prefixlen field in struct prefix. Signed-off-by: anlan_cs --- ospfd/ospf_interface.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5