Skip to content
Commit 054e5453 authored by june li's avatar june li Committed by Jukka Rissanen
Browse files

net: tcp: Reset context->tcp to NULL after net_tcp_release.



net_context_unref() is protocol agnostic, after being un-referenced,
the same context might end up being used then for UDP,
if context->tcp is not reset to NULL, calling net_context_unref()
after this UDP usage will again try to release this TCP pointer
which might lead to random error.

Signed-off-by: default avatarjune li <junelizh@foxmail.com>
parent e90064f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment