summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-11-19 10:26:02 +0100
committerGitHub <noreply@github.com>2020-11-19 10:26:02 +0100
commit53a85efa514b88be08c29dfe539612e58f2d2fb3 (patch)
tree460f600395ccdf02db728101f9c5cdd37c3fe691 /zebra
parentMerge pull request #7528 from donaldsharp/changelog_update (diff)
parentbgpd, lib, nhrpd, zebra: verify return of sockunion2hostprefix (diff)
downloadfrr-53a85efa514b88be08c29dfe539612e58f2d2fb3.tar.xz
frr-53a85efa514b88be08c29dfe539612e58f2d2fb3.zip
Merge pull request #7554 from donaldsharp/sockunion2hostprefix_watch_returns
bgpd, lib, nhrpd, zebra: verify return of sockunion2hostprefix
Diffstat (limited to 'zebra')
-rw-r--r--zebra/zebra_vty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index ea7baa256..8f7382570 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -1277,6 +1277,9 @@ DEFPY (show_ip_nht,
if (addr)
p = sockunion2hostprefix(addr, &prefix);
+ if (!p)
+ return CMD_WARNING;
+
zebra_print_rnh_table(vrf_id, afi, vty, rtype, p);
return CMD_SUCCESS;
}