diff options
| author | Olivier Dugeon <olivier.dugeon@orange.com> | 2023-04-21 18:16:34 +0200 |
|---|---|---|
| committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2023-04-21 18:24:51 +0200 |
| commit | 30584b6f6a5d4d8e1d23a9574d4c9b5def75a4ba (patch) | |
| tree | 1009fa3a7ecda1ccecd21d0493f64b678a0043b2 /lib/flex_algo.h | |
| parent | 871b46e7eb86009f1bea3cf397a8d2c38ceacd40 (diff) | |
lib: Fix memory leak in in Link State
When using ls_stream2ted() function to parse Opaque Link State message to local
TED, in case of vertex or subnet deletion, the function return a pointer to the
deleted ls_element instead of NULL. This could lead into a potential pointer
corruption when caller try to access to the deleted ls_element.
This patch ensure that the ls_element pointer return by ls_stream2ted()
function is NULL when the message event is a delete operation for vertex and
subnet. Note that edge deletion was correctly handled.
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'lib/flex_algo.h')
0 files changed, 0 insertions, 0 deletions
