mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/posix/socket: fix tcp member access
This commit is contained in:
parent
633dc78fa2
commit
bf47e436d8
@ -405,11 +405,11 @@ static void _sock_set_cb(socket_t *socket)
|
||||
case SOCK_STREAM:
|
||||
/* is a TCP client socket */
|
||||
if (socket->queue_array == NULL) {
|
||||
sock_tcp_set_cb(&socket->sock.tcp.sock, callback.tcp, socket);
|
||||
sock_tcp_set_cb(&socket->sock->tcp.sock, callback.tcp, socket);
|
||||
}
|
||||
/* is a TCP listening socket */
|
||||
else {
|
||||
sock_tcp_queue_set_cb(&socket->sock.tcp.queue,
|
||||
sock_tcp_queue_set_cb(&socket->sock->tcp.queue,
|
||||
callback.tcp_queue, socket);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user