net: tcp.c: prepare_segment() may leak fragments in case of error #4323
Labels
area: Networking
bug
The issue is a bug, or the PR is fixing a bug
priority: high
High impact/importance bug
Continuing from #4292 (comment) :
prepare_segment() has code like: https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/net/ip/tcp.c#L346 , which means that in case of early error return (e.g. https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/net/ip/tcp.c#L384), the original fragment chain of incoming packet will be lost and leaked.
The text was updated successfully, but these errors were encountered: