From 867f0ccaecebf46da1762e5fdff2b1101e97cb7b Mon Sep 17 00:00:00 2001 From: paco Date: Mon, 25 Jun 2018 15:03:17 +0200 Subject: [PATCH] bgpd: null check (Coverity 1468413) Signed-off-by: F. Aragon --- bgpd/bgp_vty.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index d98104a9fa..041c6953f6 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -6745,6 +6745,11 @@ DEFPY (bgp_imexport_vrf, safi_t safi; afi_t afi; + if (import_name == NULL) { + vty_out(vty, "%% Missing import name\n"); + return CMD_WARNING; + } + if (argv_find(argv, argc, "no", &idx)) remove = true; -- 2.39.5