diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-05-03 23:35:05 +0200 |
|---|---|---|
| committer | ton31337 <3352707+ton31337@users.noreply.github.com> | 2024-05-06 19:08:02 +0000 |
| commit | 8a07a253c756742efc45514dafaf770bab0b8e38 (patch) | |
| tree | eaa0f984675c440fc702697377a9657c2bedfa87 /pimd/pim_errors.c | |
| parent | 6ff958a0030f071fa16365d2f2b30dc99ad41a05 (diff) | |
bgpd: Fix crash when deleting the SRv6 locator
When BGP receives a `SRV6_LOCATOR_DEL` from zebra, it invokes
`bgp_zebra_process_srv6_locator_delete` to process the message.
`bgp_zebra_process_srv6_locator_delete` obtains a pointer to the default
BGP instance and then dereferences this pointer.
If the default BGP instance is not ready / not configured yet, this
pointer this pointer is `NULL` and dereferencing it causes BGP to crash.
This commit fix the issue by adding a a check to verify if the pointer
is `NULL` and returning early if it is.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
(cherry picked from commit ae3241b96d7be08d627f142030a41031492ffaf5)
Diffstat (limited to 'pimd/pim_errors.c')
0 files changed, 0 insertions, 0 deletions
