summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-09-11 20:30:24 +0200
committerDonald Sharp <sharpd@nvidia.com>2020-09-11 20:30:24 +0200
commit491d1cc12b73487d11c1667096f571bf6645f009 (patch)
tree9e4e12a84146928926677146d95eba2dba61c5c3 /isisd
parentMerge pull request #7075 from donaldsharp/snap_fix (diff)
downloadfrr-491d1cc12b73487d11c1667096f571bf6645f009.tar.xz
frr-491d1cc12b73487d11c1667096f571bf6645f009.zip
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c
index 31fe41db8..63e1b4e44 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");