Merge pull request #7095 from donaldsharp/coverity_5

isisd: ifp cannot be NULL
This commit is contained in:
Jafar Al-Gharaibeh 2020-09-11 22:07:56 -05:00 committed by GitHub
commit 58e6747297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");