mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_sixlowpan_frag_vrb: call base_rm() with gnrc_sixlowpan_frag_rb
`gnrc_sixlowpan_frag_rb_base_rm()` cleans up the intervals which is part of `gnrc_sixlowpan_frag_rb`, not `gnrc_sixlowpan_frag`, so when the `gnrc_sixlowpan_frag` is not compiled in, but `gnrc_sixlowpan_frag_rb`, the intervals allocated in the reassembly buffer and inherited by the virtual reassembly buffer are never released.
This commit is contained in:
parent
4df6bb425f
commit
54a8599170
@ -25,6 +25,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "kernel_defines.h"
|
||||
#include "net/gnrc/netif.h"
|
||||
#include "net/gnrc/sixlowpan/config.h"
|
||||
#ifdef MODULE_GNRC_SIXLOWPAN_FRAG
|
||||
@ -123,9 +124,9 @@ gnrc_sixlowpan_frag_vrb_t *gnrc_sixlowpan_frag_vrb_get(
|
||||
*/
|
||||
static inline void gnrc_sixlowpan_frag_vrb_rm(gnrc_sixlowpan_frag_vrb_t *vrb)
|
||||
{
|
||||
#ifdef MODULE_GNRC_SIXLOWPAN_FRAG
|
||||
gnrc_sixlowpan_frag_rb_base_rm(&vrb->super);
|
||||
#endif /* MODULE_GNRC_SIXLOWPAN_FRAG */
|
||||
if (IS_USED(MODULE_GNRC_SIXLOWPAN_FRAG_RB)) {
|
||||
gnrc_sixlowpan_frag_rb_base_rm(&vrb->super);
|
||||
}
|
||||
vrb->super.src_len = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user