mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #18694 from petrvaganoff/dev
Some checks are pending
build-test / Build the x86 ubuntu 22.04 docker image (push) Waiting to run
build-test / Test ubuntu x86 docker image (push) Blocked by required conditions
build-test / Build the ARM ubuntu 22.04 docker image (push) Waiting to run
build-test / Test ubuntu ARM docker image (push) Blocked by required conditions
Some checks are pending
build-test / Build the x86 ubuntu 22.04 docker image (push) Waiting to run
build-test / Test ubuntu x86 docker image (push) Blocked by required conditions
build-test / Build the ARM ubuntu 22.04 docker image (push) Waiting to run
build-test / Test ubuntu ARM docker image (push) Blocked by required conditions
bgpd: Fix deref after free in bgp_vrf_unlink
This commit is contained in:
commit
12e95e5cb0
|
@ -2959,11 +2959,11 @@ static inline void bgp_vrf_link(struct bgp *bgp, struct vrf *vrf)
|
|||
/* Unlink BGP instance from VRF. */
|
||||
static inline void bgp_vrf_unlink(struct bgp *bgp, struct vrf *vrf)
|
||||
{
|
||||
bgp->vrf_id = VRF_UNKNOWN;
|
||||
if (vrf->info == (void *)bgp) {
|
||||
vrf->info = NULL;
|
||||
bgp_unlock(bgp);
|
||||
}
|
||||
bgp->vrf_id = VRF_UNKNOWN;
|
||||
}
|
||||
|
||||
static inline bool bgp_in_graceful_shutdown(struct bgp *bgp)
|
||||
|
|
Loading…
Reference in a new issue