lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] pbufs get lost


From: Leon Woestenberg
Subject: Re: [lwip-users] pbufs get lost
Date: Fri, 04 Feb 2005 14:31:48 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)


Hello Pasi,


address@hidden wrote:

While doing  testing I found bug in tcp_out.c.

  /* If total number of pbufs on the unsent/unacked queues exceeds the
   * configured maximum, return an error */
  queuelen = pcb->snd_queuelen;
  if (queuelen >= TCP_SND_QUEUELEN) {
LWIP_DEBUGF(TCP_OUTPUT_DEBUG | 3, ("tcp_enqueue: too long queue %u (max %u)\n", queuelen, TCP_SND_QUEUELEN));
    goto memerr;
  }

should be (because queue is not initialized and used in memerr):

  /* If total number of pbufs on the unsent/unacked queues exceeds the
   * configured maximum, return an error */
  queuelen = pcb->snd_queuelen;
  if (queuelen >= TCP_SND_QUEUELEN) {
LWIP_DEBUGF(TCP_OUTPUT_DEBUG | 3, ("tcp_enqueue: too long queue %u (max %u)\n", queuelen, TCP_SND_QUEUELEN));
    return ERR_MEM;
  }
Thanks, fixed in CVS HEAD (will be merged into STABLE-1_1 branch soon).

Regards,

Leon.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]