diff --git a/net/tcp/tcp_send_unbuffered.c b/net/tcp/tcp_send_unbuffered.c index 4b4f9882b1..26c091d804 100644 --- a/net/tcp/tcp_send_unbuffered.c +++ b/net/tcp/tcp_send_unbuffered.c @@ -288,6 +288,7 @@ static uint16_t tcpsend_eventhandler(FAR struct net_driver_s *dev, sndlen, tcpip_hdrsize(conn)); if (ret <= 0) { + pstate->snd_sent = ret; goto end_wait; } @@ -374,6 +375,7 @@ static uint16_t tcpsend_eventhandler(FAR struct net_driver_s *dev, sndlen, tcpip_hdrsize(conn)); if (ret <= 0) { + pstate->snd_sent = ret; goto end_wait; }