diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-04-18 12:32:19 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-04-19 16:09:50 -0300 |
| commit | 6c4c3561fe07a0f388aba938643d8932450f8be1 (patch) | |
| tree | c2dfe94051db85896f9ca87f7743704d31a96f8b /lib/lib_errors.h | |
| parent | c02a40c14fec005d419ad1dbd3fac0e9521b9c6f (diff) | |
ripd, ripngd: fix cleaning up of offset lists
We should never attempt to remove a list item in the "del" callback
of the list. This is already performed by the list_delete() function,
doing it twice leads to crashes or memory corruption.
Introduce the offset_list_free() function so that we can separate the
removal and deallocation of offset lists into separate functions,
without code duplication. offset_list_del() will be used by the
northbound callbacks to remove offset lists, while offset_list_free()
will be used by rip_clean() to clean up all RIP offset lists using
list_delete(). Do the same for ripngd.
This is a fallout from the ripd/ripngd northbound conversion.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/lib_errors.h')
0 files changed, 0 insertions, 0 deletions
