summaryrefslogtreecommitdiff
path: root/staticd
diff options
context:
space:
mode:
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_vty.c10
-rw-r--r--staticd/static_zebra.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c
index f926e1d9cd..48ad10e90c 100644
--- a/staticd/static_vty.c
+++ b/staticd/static_vty.c
@@ -426,15 +426,15 @@ 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");
+ "%% Nexthop interface name can not be from reserved keywords (Null0, reject, blackhole)\n");
else
zlog_warn(
- "%s: Nexthop interface cannot be Null0, reject or blackhole for %s",
+ "%s: %s: Nexthop interface name can not be from reserved keywords (Null0, reject, blackhole)\n",
__PRETTY_FUNCTION__, dest_str);
return CMD_WARNING_CONFIG_FAILED;
}
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c
index 976f892efb..a474613b4d 100644
--- a/staticd/static_zebra.c
+++ b/staticd/static_zebra.c
@@ -79,7 +79,7 @@ static int interface_address_delete(ZAPI_CALLBACK_ARGS)
if (!c)
return 0;
- connected_free(c);
+ connected_free(&c);
return 0;
}
@@ -260,7 +260,7 @@ static void static_nht_hash_free(void *data)
{
struct static_nht_data *nhtd = data;
- prefix_free(nhtd->nh);
+ prefix_free(&nhtd->nh);
XFREE(MTYPE_TMP, nhtd);
}