[bug #17500] UDP PCB remove error!

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

[bug #17500] UDP PCB remove error!

Wilfred

URL:
  <http://savannah.nongnu.org/bugs/?17500>

                 Summary: UDP PCB remove error!
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: None
            Submitted on: Tuesday 08/22/06 at 12:11 UTC
                Category: UDP
                Severity: 3 - Normal
              Item Group: Crash Error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

in udp_remove method, the following statement has a error!

"if (pcb2->next != NULL && pcb2->next == pcb) {
      /* remove pcb from list */
      pcb2->next = pcb->next;
    }"

it should be "...pcb2->next = pcb2->next->next;...."






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



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

[bug #17500] UDP PCB remove error!

Wilfred

Update of bug #17500 (project lwip):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Can't see the bug here. E.g. [a]->[b]->[c] where pcb points to [b] (the pcb
to be removed) at the first iteration pcb2->next will also point to [b] thus
equals pcb. pcb2->next (a.next) must be assigned pcb->next (b.next).
pcb2->next->next equals pcb->next so this is pointless.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



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