gnrc_sixlowpan_frag_vrb: set src_len to 0 on remove
45f7966 made the `src_len` field the "emptiness signifier" for the VRB. However, when `gnrc_sixlowpan_frag` is compiled in, the remove function `gnrc_sixlowpan_frag_vrb_rm()` does not set the `src_len` to zero, resulting in already deleted entry to be recognized as non-empty.
This commit is contained in:
parent
918a4ac04d
commit
e4d95c568b
@ -125,10 +125,8 @@ 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);
|
||||
#elif defined(TEST_SUITES)
|
||||
/* for testing just zero src_len */
|
||||
vrb->super.src_len = 0;
|
||||
#endif /* MODULE_GNRC_SIXLOWPAN_FRAG */
|
||||
vrb->super.src_len = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user