1
0
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:
Hendrik van Essen 2021-01-29 01:53:26 +01:00
parent 633dc78fa2
commit bf47e436d8

View File

@ -405,11 +405,11 @@ static void _sock_set_cb(socket_t *socket)
case SOCK_STREAM: case SOCK_STREAM:
/* is a TCP client socket */ /* is a TCP client socket */
if (socket->queue_array == NULL) { 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 */ /* is a TCP listening socket */
else { else {
sock_tcp_queue_set_cb(&socket->sock.tcp.queue, sock_tcp_queue_set_cb(&socket->sock->tcp.queue,
callback.tcp_queue, socket); callback.tcp_queue, socket);
} }
break; break;