lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20480] tcp_listen should check the pcb


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #20480] tcp_listen should check the pcb
Date: Sat, 14 Jul 2007 09:58:42 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

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

                 Summary: tcp_listen should check the pcb
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Samstag 14.07.2007 um 09:58
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 

    _______________________________________________________

Details:

if tcp_listen is passed a tcp_pcb that is not in state closed (so, not on
tcp_bound_pcbs but on another list), this pcb will be freed and stays on the
list that is is on.

e.g. you can call tcp_listen with a tcp_pcb that is currently connected,
tcp_listen will try to remove that from the tcp_bound_pcbs list (which it is
not on) and free it. Then, if the pcb_active_pcbs is scanned again later,
there will be an entry in it which is freed.

Possible solution: check that the pcb given to tcp_listen is in state CLOSED




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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