summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authoranlan_cs <anlan_cs@tom.com>2021-08-04 08:47:45 -0400
committeranlan_cs <anlan_cs@tom.com>2021-08-04 21:20:20 -0400
commit46a8c343240926260058eadbc6f38254679e9390 (patch)
tree67184993f76ec9dd4663c228439bdb745035a8de /ospfd/ospf_interface.c
parent5504fee4a389aa5d1f7402ad72d68059385055b7 (diff)
ospfd: fix coverity warning of one field initialization
Add the initialization of prefixlen field in struct prefix. Signed-off-by: anlan_cs <anlan_cs@tom.com>
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r--ospfd/ospf_interface.c1
1 files changed, 1 insertions, 0 deletions
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);