diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c index 9e26e8f4ed..b72304a826 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c @@ -525,7 +525,7 @@ void gnrc_tcp_close(gnrc_tcp_tcb_t *tcb) /* Return if connection is closed */ if (tcb->state == FSM_STATE_CLOSED) { mutex_unlock(&(tcb->function_lock)); - return 0; + return; } /* Mark TCB as waiting for incomming messages */