Merge pull request #2545 from pacovn/Coverity_1468413_Explicit_null_dereferenced

bgpd: null check (Coverity 1468413)
This commit is contained in:
Russ White 2018-06-26 11:14:39 -04:00 committed by GitHub
commit f1b5eeea03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;