lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result


From: Frédéric Bernon
Subject: [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result
Date: Wed, 28 Mar 2007 13:38:46 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Follow-up Comment #6, bug #19432 (project lwip):

Ok to set "buf->ptr = NULL;" only if (buf->p == NULL), it's better.

About length fields, ???, what length field? I don't understand. There is no
such field in netbuf. Or you talk about this line?

buf->p->len = buf->p->tot_len = size;

But if it's right, if buf->p==NULL, then we don't have len and tot_len.

Last, in struct netbuf, there is a "err_t err;" field which is never used. I
propose to remove.

Ok to commit without the "err_t err;", and with "buf->ptr = NULL;" only if
(buf->p == NULL)?


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19432>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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