lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #58631] Bug or documentation discrepancy in netconn_re


From: Wilfred
Subject: [lwip-devel] [bug #58631] Bug or documentation discrepancy in netconn_recv_tcp_pbuf
Date: Fri, 19 Jun 2020 21:55:45 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36

URL:
  <https://savannah.nongnu.org/bugs/?58631>

                 Summary: Bug or documentation discrepancy in
netconn_recv_tcp_pbuf
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: will
            Submitted on: Sat 20 Jun 2020 01:55:43 AM UTC
                Category: sockets/netconn
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:


There is either a bug in netconn_recv_tcp_pbuf or a clarification in the
documentation is needed.

I am using the ESP32 IDE latest commit 625bd5e
https://github.com/espressif/esp-idf/
lwIP CHANGELOG says STABLE-2.1.2

My code:

pb=NULL;
if(ERR_OK != netconn_recv_tcp_pbuf(nconn, &pb))
{
   assert(pb == NULL); /* fails */
   if(pb)
      pbuf_free(pb); /* Crashes in pbuf_free() if above assert is removed */
}







    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58631>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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