From: Donald Sharp Date: Fri, 11 Sep 2020 18:30:24 +0000 (-0400) Subject: isisd: ifp cannot be NULL X-Git-Tag: base_7.6~568^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=491d1cc12b73487d11c1667096f571bf6645f009;p=mirror%2Ffrr.git isisd: ifp cannot be NULL the ifp pointer cannot be NULL when we get to this point in the code. Signed-off-by: Donald Sharp --- diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c index 31fe41db82..63e1b4e441 100644 --- a/isisd/isis_cli.c +++ b/isisd/isis_cli.c @@ -235,7 +235,7 @@ DEFPY_YANG(ip_router_isis, ip_router_isis_cmd, } /* check if the interface is a loopback and if so set it as passive */ - if (ifp && if_is_loopback(ifp)) + if (if_is_loopback(ifp)) nb_cli_enqueue_change(vty, "./frr-isisd:isis/passive", NB_OP_MODIFY, "true"); @@ -326,7 +326,7 @@ DEFPY_YANG(ip6_router_isis, ip6_router_isis_cmd, } /* check if the interface is a loopback and if so set it as passive */ - if (ifp && if_is_loopback(ifp)) + if (if_is_loopback(ifp)) nb_cli_enqueue_change(vty, "./frr-isisd:isis/passive", NB_OP_MODIFY, "true");