summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-11-12 13:21:19 -0300
committerGitHub <noreply@github.com>2019-11-12 13:21:19 -0300
commit7b6b97edcd2735b997c89e12ef36a8828bfdbdf3 (patch)
tree72608e779c0eac6e7a606092d905f118e9f39d82
parent4027970a0b0b055f14702776cf7dbb0b98ada138 (diff)
parent38aac4a8fc88f7386a993446b7f46252aedb0e05 (diff)
Merge pull request #5302 from qlyoung/static-stnradsjfsacasecmppnullLLL000
staticd: exact match on magic interface names
-rw-r--r--staticd/static_vty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c
index f926e1d9cd..8cc4ccced1 100644
--- a/staticd/static_vty.c
+++ b/staticd/static_vty.c
@@ -426,9 +426,9 @@ static int static_route_leak(
/* Null0 static route. */
if (ifname != NULL) {
- if (strncasecmp(ifname, "Null0", strlen(ifname)) == 0
- || strncasecmp(ifname, "reject", strlen(ifname)) == 0
- || strncasecmp(ifname, "blackhole", strlen(ifname)) == 0) {
+ if (strcasecmp(ifname, "Null0") == 0
+ || strcasecmp(ifname, "reject") == 0
+ || strcasecmp(ifname, "blackhole") == 0) {
if (vty)
vty_out(vty,
"%% Nexthop interface cannot be Null0, reject or blackhole\n");