39328e8836
When all the data of the new packet is already present in the queue_recv_data, make sure the packet is discarded. This commit adds a test line that reproduces the issue and implements a fix. Also in appending the packet, call the official net_buf_frag_add function instead of updating the last net_buf pointer, since the net_pkt_remove_tail called in between, might have removed the last net_buf. Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com> |
||
---|---|---|
.. | ||
application_development | ||
arch | ||
benchmarks | ||
bluetooth | ||
boards | ||
boot/uefi | ||
cmake/config_dir | ||
crypto | ||
drivers | ||
kernel | ||
lib | ||
misc | ||
net | ||
posix | ||
subsys | ||
unit | ||
ztest |