diff options
author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2020-09-12 05:07:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 05:07:56 +0200 |
commit | 58e6747297fe278135e54ff098400f076bdf571c (patch) | |
tree | e4d7c2e59f6f1bfa7cbe10d15546e8bea2d683c6 /isisd/isis_cli.c | |
parent | Merge pull request #7080 from opensourcerouting/staticd-minor-issues (diff) | |
parent | isisd: ifp cannot be NULL (diff) | |
download | frr-58e6747297fe278135e54ff098400f076bdf571c.tar.xz frr-58e6747297fe278135e54ff098400f076bdf571c.zip |
Merge pull request #7095 from donaldsharp/coverity_5
isisd: ifp cannot be NULL
Diffstat (limited to 'isisd/isis_cli.c')
-rw-r--r-- | isisd/isis_cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c index f493c7ae9..406717e04 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"); |