summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_oad/test_bgp_oad.py
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2024-05-03 23:35:05 +0200
committerCarmine Scarpitta <cscarpit@cisco.com>2024-05-03 23:40:29 +0200
commitae3241b96d7be08d627f142030a41031492ffaf5 (patch)
tree2602d10b3c0c4ebaeac1742eaec69bbbef3fdf2a /tests/topotests/bgp_oad/test_bgp_oad.py
parent75131b43b4ec19fd194fb34d18fd4a4d3cb9127a (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>
Diffstat (limited to 'tests/topotests/bgp_oad/test_bgp_oad.py')
0 files changed, 0 insertions, 0 deletions