From 711e32eded7bb39b1335748839a47e8e23961cde Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Tue, 13 Oct 2020 22:52:12 +0300 Subject: [PATCH] ospfd: fix freeing of if_params struct Freeing of configuration structure should not depend on operational variable. Signed-off-by: Igor Ryzhov --- ospfd/ospf_interface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 0a787ab600..93ce04e817 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -570,8 +570,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); -- 2.39.5