[bug #58631] Bug or documentation discrepancy in netconn_recv_tcp_pbuf

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #58631] Bug or documentation discrepancy in netconn_recv_tcp_pbuf

Ashley Duncan
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/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #58631] Bug or documentation discrepancy in netconn_recv_tcp_pbuf

Ashley Duncan
Follow-up Comment #1, bug #58631 (project lwip):

A bit more details would be nice. What's the documentation discrepancy and
where did you read the docs?

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #58631] Bug or documentation discrepancy in netconn_recv_tcp_pbuf

Ashley Duncan
Follow-up Comment #2, bug #58631 (project lwip):


[comment #1 comment #1:]
> A bit more details would be nice. What's the documentation discrepancy and
where did you read the docs?

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel