mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
Merge pull request #2543 from pacovn/Coverity_1399304_Out-of-bounds_access
ospfd: out-of-bounds access (Coverity 1399304 1399286)
This commit is contained in:
commit
433b146e25
@ -8166,6 +8166,11 @@ DEFUN (ospf_redistribute_instance_source,
|
||||
|
||||
source = proto_redistnum(AFI_IP, argv[idx_ospf_table]->text);
|
||||
|
||||
if (source < 0) {
|
||||
vty_out(vty, "Unknown instance redistribution\n");
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
|
||||
instance = strtoul(argv[idx_number]->arg, NULL, 10);
|
||||
|
||||
if ((source == ZEBRA_ROUTE_OSPF) && !ospf->instance) {
|
||||
|
Loading…
Reference in New Issue
Block a user