]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: fix missing initialization and check for if_area param
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 13 Oct 2020 19:53:02 +0000 (22:53 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Oct 2020 18:35:49 +0000 (21:35 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospfd/ospf_interface.c

index 93ce04e817e118a9950abc37397b29ac818b00e0..31ea603e0fd4867349c728a89b11f7fd11506cbd 100644 (file)
@@ -527,6 +527,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();
 
@@ -570,6 +571,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;