mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
Fix bug #55513: Uninitialized variable in struct netconn
using patch from Karol Domagalski
(cherry picked from commit 926e399355
)
This commit is contained in:
parent
5cc46d7989
commit
cd91647999
@ -716,6 +716,9 @@ netconn_alloc(enum netconn_type t, netconn_callback callback)
|
||||
conn->pending_err = ERR_OK;
|
||||
conn->type = t;
|
||||
conn->pcb.tcp = NULL;
|
||||
#if LWIP_NETCONN_FULLDUPLEX
|
||||
conn->mbox_threads_waiting = 0;
|
||||
#endif
|
||||
|
||||
/* If all sizes are the same, every compiler should optimize this switch to nothing */
|
||||
switch (NETCONNTYPE_GROUP(t)) {
|
||||
|
Loading…
Reference in New Issue
Block a user