summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2023-04-21 18:09:28 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-05-09 13:03:43 +0300
commit719b26901c1c99957c87ee99d079bcb0d43760ca (patch)
tree6678ccf840c1a13de97801db6dff5c9754159195 /lib/command.c
parent3b8686f64c203050f2c3554b7ac8a896ee44cde9 (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