net: ip: set context state to NET_CONTEXT_CONNECTED on synack success
Once SYNACK has been received for a TCP connection, we need to set the net context state to NET_CONTEXT_CONNECTED or else calls to sendto() will fail with -ENOTCONN. Change-Id: Idd78e1dcdd5ac0bca5d3fba40b59ab8fde6b8729 Signed-off-by: Michael Scott <michael.scott@linaro.org>
This commit is contained in:
parent
c306844583
commit
742b5e22ea
1 changed files with 1 additions and 0 deletions
|
@ -920,6 +920,7 @@ static enum net_verdict tcp_synack_received(struct net_conn *conn,
|
|||
}
|
||||
|
||||
net_tcp_change_state(context->tcp, NET_TCP_ESTABLISHED);
|
||||
net_context_set_state(context, NET_CONTEXT_CONNECTED);
|
||||
|
||||
send_ack(context, raddr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue