]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: fix freeing of if_params struct
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 13 Oct 2020 19:52:12 +0000 (22:52 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Oct 2020 18:35:49 +0000 (21:35 +0300)
Freeing of configuration structure should not depend on operational
variable.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospfd/ospf_interface.c

index 0a787ab600b0e12988c9e9afbd4f3e09f5c216f7..93ce04e817e118a9950abc37397b29ac818b00e0 100644 (file)
@@ -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);