diff --git a/net/tcp/tcp_input.c b/net/tcp/tcp_input.c index 2975c0d2e6c..c37caf77915 100644 --- a/net/tcp/tcp_input.c +++ b/net/tcp/tcp_input.c @@ -694,7 +694,7 @@ found: #ifdef CONFIG_NET_TCP_WRITE_BUFFERS unackseq = conn->sndseq_max; #else - unackseq = tcp_addsequence(conn->sndseq, conn->tx_unacked); + unackseq = tcp_getsequence(conn->sndseq); #endif /* Get the sequence number of that has just been acknowledged by this