mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-24 19:35:25 +00:00
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>
This commit is contained in:
parent
e7378cb1e9
commit
2917d36bf9
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user