Merge pull request #7069 from miri64/gnrc_tcp/bug/fix-close-return

gnrc_tcp: fix return on closed state
This commit is contained in:
Thomas Eichinger 2017-05-17 10:14:12 -07:00 committed by GitHub
commit db51861b3e

View File

@ -525,7 +525,7 @@ void gnrc_tcp_close(gnrc_tcp_tcb_t *tcb)
/* Return if connection is closed */ /* Return if connection is closed */
if (tcb->state == FSM_STATE_CLOSED) { if (tcb->state == FSM_STATE_CLOSED) {
mutex_unlock(&(tcb->function_lock)); mutex_unlock(&(tcb->function_lock));
return 0; return;
} }
/* Mark TCB as waiting for incomming messages */ /* Mark TCB as waiting for incomming messages */