1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

Merge pull request #12130 from miri64/posix_sockets/fix/i10308-526716024

posix_socket: set sock for returned socket on accept()
This commit is contained in:
benpicco 2019-09-02 12:05:13 +02:00 committed by GitHub
commit 3901740ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,6 +461,7 @@ int accept(int socket, struct sockaddr *restrict address,
new_s->bound = true;
new_s->queue_array = NULL;
new_s->queue_array_len = 0;
new_s->sock = (socket_sock_t *)sock;
memset(&s->local, 0, sizeof(sock_tcp_ep_t));
}
break;