]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: null check (Coverity 1468413)
authorpaco <paco@voltanet.io>
Mon, 25 Jun 2018 13:03:17 +0000 (15:03 +0200)
committerpaco <paco@voltanet.io>
Mon, 25 Jun 2018 13:03:17 +0000 (15:03 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
bgpd/bgp_vty.c

index d98104a9faa819d906682dc8c63551e4ae54e484..041c6953f6d5b49b88b3895669f1329dde29752b 100644 (file)
@@ -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;