diff --git a/net/tcp/tcp_recvfrom.c b/net/tcp/tcp_recvfrom.c index a40abd905d..1d11d76993 100644 --- a/net/tcp/tcp_recvfrom.c +++ b/net/tcp/tcp_recvfrom.c @@ -811,8 +811,7 @@ ssize_t psock_tcp_recvfrom(FAR struct socket *psock, FAR void *buf, /* Receive additional data from read-ahead buffer, send the ACK timely. */ - else if (state.ir_recvlen > 0 && conn->rcv_wnd == 0 && - conn->rcv_ackcb == NULL) + if (conn->rcv_wnd == 0 && conn->rcv_ackcb == NULL) { conn->rcv_ackcb = tcp_callback_alloc(conn); if (conn->rcv_ackcb)