diff options
| author | anlan_cs <anlan_cs@tom.com> | 2021-08-04 08:47:45 -0400 |
|---|---|---|
| committer | anlan_cs <anlan_cs@tom.com> | 2021-08-04 21:20:20 -0400 |
| commit | 46a8c343240926260058eadbc6f38254679e9390 (patch) | |
| tree | 67184993f76ec9dd4663c228439bdb745035a8de /ospfd/ospf_interface.c | |
| parent | 5504fee4a389aa5d1f7402ad72d68059385055b7 (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.c | 1 |
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); |
