fix bug #21656 (recvmbox problem in netconn API): always allocate a recvmbox in netconn_new_with_proto_and_callback. For a tcp-listen netconn, this recvmbox is later freed and a new mbox is allocated for acceptmbox. This is a fix for thread-safety and allocates all items needed for a netconn when the netconn is created.

This commit is contained in:
goldsimon
2007-12-02 14:53:50 +00:00
parent 081e4d9209
commit 113a52d091
3 changed files with 22 additions and 19 deletions

View File

@@ -508,6 +508,13 @@ HISTORY
++ Bug fixes:
2007-12-02 Simon Goldschmidt
* api_msg.c, api_lib.c: fix bug #21656 (recvmbox problem in netconn API): always
allocate a recvmbox in netconn_new_with_proto_and_callback. For a tcp-listen
netconn, this recvmbox is later freed and a new mbox is allocated for acceptmbox.
This is a fix for thread-safety and allocates all items needed for a netconn
when the netconn is created.
2007-11-30 Simon Goldschmidt
* udp.c: first attempt to fix bug #21655 (DHCP doesn't work reliably with multiple
netifs): if LWIP_DHCP is enabled, UDP packets to DHCP_CLIENT_PORT are passed