]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #2545 from pacovn/Coverity_1468413_Explicit_null_dereferenced
authorRuss White <russ@riw.us>
Tue, 26 Jun 2018 15:14:39 +0000 (11:14 -0400)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 15:14:39 +0000 (11:14 -0400)
bgpd: null check (Coverity 1468413)

bgpd/bgp_vty.c

index 7b1147b61731189c5822cb781dd79f6522077765..3d1fdfd38de9fd858d07b6733b55b692cfba1c8b 100644 (file)
@@ -6737,6 +6737,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;