summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-10-13 22:52:12 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2020-10-13 22:52:12 +0300
commit2917d36bf9c6e33d535b298bd67ac8fd5337cc1b (patch)
treede989cf8bb8d25a17ccbd0015fd8defe4482faf7 /ospfd/ospf_interface.c
parente7378cb1e93c935883bd15cdf512c0cea7615ce3 (diff)
ospfd: fix freeing of if_params struct
Freeing of configuration structure should not depend on operational variable. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r--ospfd/ospf_interface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index 3d2c28b1e4..5d5d24580b 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -579,8 +579,7 @@ void ospf_free_if_params(struct interface *ifp, struct in_addr addr)
&& !OSPF_IF_PARAM_CONFIGURED(oip, type)
&& !OSPF_IF_PARAM_CONFIGURED(oip, auth_simple)
&& !OSPF_IF_PARAM_CONFIGURED(oip, auth_type)
- && listcount(oip->auth_crypt) == 0
- && ntohl(oip->network_lsa_seqnum) != OSPF_INITIAL_SEQUENCE_NUMBER) {
+ && listcount(oip->auth_crypt) == 0) {
ospf_del_if_params(oip);
rn->info = NULL;
route_unlock_node(rn);