net: sockets: tls: Mark accepted socket correctly in accept()
The TCP code expects that we know when the socket has called accept() in order to continue connection attempt. Fixes #21335 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
073e0b77d6
commit
b92a4c5cff
|
@ -1297,6 +1297,8 @@ int ztls_accept_ctx(struct net_context *parent, struct sockaddr *addr,
|
|||
}
|
||||
}
|
||||
|
||||
net_context_set_accepting(child, false);
|
||||
|
||||
z_finalize_fd(
|
||||
fd, child, (const struct fd_op_vtable *)&tls_sock_fd_op_vtable);
|
||||
|
||||
|
|
Loading…
Reference in a new issue