summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authoranlan_cs <anlan_cs@tom.com>2021-08-04 14:47:45 +0200
committeranlan_cs <anlan_cs@tom.com>2021-08-05 03:20:20 +0200
commit46a8c343240926260058eadbc6f38254679e9390 (patch)
tree67184993f76ec9dd4663c228439bdb745035a8de /ospfd
parentMerge pull request #9085 from mobash-rasool/pim-upst-4 (diff)
downloadfrr-46a8c343240926260058eadbc6f38254679e9390.tar.xz
frr-46a8c343240926260058eadbc6f38254679e9390.zip
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')
-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 e0e61a266..eb7a8348e 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);