summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2024-05-03 23:35:05 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-05-06 05:52:34 +0000
commit20593bf0fb520d6a5283df3fbd9eba56e96b7edd (patch)
tree36769ba4642a7b72c9d2b2bedb361460e31e4e1c /ospfd/ospf_interface.c
parent8fb9a51728acdbb358c9a64533a03432eb659b6a (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 'ospfd/ospf_interface.c')
0 files changed, 0 insertions, 0 deletions