From: paco Date: Mon, 25 Jun 2018 13:03:17 +0000 (+0200) Subject: bgpd: null check (Coverity 1468413) X-Git-Tag: frr-6.1-dev~247^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=867f0ccaecebf46da1762e5fdff2b1101e97cb7b;p=matthieu%2Ffrr.git bgpd: null check (Coverity 1468413) Signed-off-by: F. Aragon --- 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;