mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:15:47 +00:00
ospfd: fix missing initialization and check for if_area param
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
2917d36bf9
commit
bf617538be
@ -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_simple);
|
||||||
UNSET_IF_PARAM(oip, auth_crypt);
|
UNSET_IF_PARAM(oip, auth_crypt);
|
||||||
UNSET_IF_PARAM(oip, auth_type);
|
UNSET_IF_PARAM(oip, auth_type);
|
||||||
|
UNSET_IF_PARAM(oip, if_area);
|
||||||
|
|
||||||
oip->auth_crypt = list_new();
|
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, type)
|
||||||
&& !OSPF_IF_PARAM_CONFIGURED(oip, auth_simple)
|
&& !OSPF_IF_PARAM_CONFIGURED(oip, auth_simple)
|
||||||
&& !OSPF_IF_PARAM_CONFIGURED(oip, auth_type)
|
&& !OSPF_IF_PARAM_CONFIGURED(oip, auth_type)
|
||||||
|
&& !OSPF_IF_PARAM_CONFIGURED(oip, if_area)
|
||||||
&& listcount(oip->auth_crypt) == 0) {
|
&& listcount(oip->auth_crypt) == 0) {
|
||||||
ospf_del_if_params(oip);
|
ospf_del_if_params(oip);
|
||||||
rn->info = NULL;
|
rn->info = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user