mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 00:13:40 +00:00
Merge pull request #2545 from pacovn/Coverity_1468413_Explicit_null_dereferenced
bgpd: null check (Coverity 1468413)
This commit is contained in:
commit
f1b5eeea03
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user