diff options
| author | Olivier Dugeon <olivier.dugeon@orange.com> | 2023-04-21 18:09:28 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-05-09 13:03:43 +0300 |
| commit | 719b26901c1c99957c87ee99d079bcb0d43760ca (patch) | |
| tree | 6678ccf840c1a13de97801db6dff5c9754159195 /lib/command.c | |
| parent | 3b8686f64c203050f2c3554b7ac8a896ee44cde9 (diff) | |
lib: Link State memory corruption
In function ls_find_subnet(), prefix argument is directly copied into
subnet.key structure to find corresponding subnet in RB Tree. This could leadr
to a memory corruption. Function prefix_copy() must be used instead.
This patch replaces the direct prefix copy by a call to prefix_copy() function
to avoid this memory issue.
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions
