mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 05:27:16 +02:00
Merge pull request #18700 from pguibert6WIND/bmp_mirror_heap_use_after_free
bgpd: fix bmp heap use after free on non connected session
This commit is contained in:
commit
14267741aa
|
@ -865,6 +865,8 @@ static int bmp_mirror_packet(struct peer *peer, uint8_t type, bgp_size_t size,
|
|||
bmp->mirrorpos = qitem;
|
||||
pullwr_bump(bmp->pullwr);
|
||||
}
|
||||
if (qitem->refcount == 0)
|
||||
continue;
|
||||
bmpbgp->mirror_qsize += sizeof(*qitem) + size;
|
||||
bmp_mirrorq_add_tail(&bmpbgp->mirrorq, qitem);
|
||||
|
||||
|
|
Loading…
Reference in a new issue