lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20315] Problem in the use of tcp_listen in api_msg.c


From: Frédéric Bernon
Subject: [lwip-devel] [bug #20315] Problem in the use of tcp_listen in api_msg.c
Date: Tue, 10 Jul 2007 13:32:18 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

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

I attach a patch file. In rawapi.txt, we can read :

"tcp_listen() may return NULL if no memory was available for the
listening connection. If so, the memory associated with the pcb
passed as an argument to tcp_listen() will not be deallocated."

So, the change is only in api_msg.c. Problem, it's always possible that
tcp_listen return a valid pcb, but that the sys_mbox_new for acceptmbox
failed: in this case the pcb can't be used, and should be closed. The
sys_mbox_new success is a port problem, so, since a LWIP_ERROR is used in
netconn_accept, I think the patch is enough. 

Ok for you?


(file #13282)
    _______________________________________________________

Additional Item Attachment:



    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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