]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: fix coverity warning of one field initialization 9294/head
authoranlan_cs <anlan_cs@tom.com>
Wed, 4 Aug 2021 12:47:45 +0000 (08:47 -0400)
committeranlan_cs <anlan_cs@tom.com>
Thu, 5 Aug 2021 01:20:20 +0000 (21:20 -0400)
Add the initialization of prefixlen field in struct prefix.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
ospfd/ospf_interface.c

index e0e61a2664df9eb2aa74b3ac60455a857dde8b3b..eb7a8348e832e0452953229f137dc0dee754067c 100644 (file)
@@ -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);