From: Igor Ryzhov Date: Tue, 13 Oct 2020 19:53:02 +0000 (+0300) Subject: ospfd: fix missing initialization and check for if_area param X-Git-Tag: base_7.6~340^2~7 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bf617538be97afce69ff2f64549e6b0a6a2037ff;p=matthieu%2Ffrr.git ospfd: fix missing initialization and check for if_area param Signed-off-by: Igor Ryzhov --- diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 5d5d24580b..631e216352 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -535,6 +535,7 @@ static struct ospf_if_params *ospf_new_if_params(void) UNSET_IF_PARAM(oip, auth_simple); UNSET_IF_PARAM(oip, auth_crypt); UNSET_IF_PARAM(oip, auth_type); + UNSET_IF_PARAM(oip, if_area); oip->auth_crypt = list_new(); @@ -579,6 +580,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) + && !OSPF_IF_PARAM_CONFIGURED(oip, if_area) && listcount(oip->auth_crypt) == 0) { ospf_del_if_params(oip); rn->info = NULL;