Fix bug #55513: Uninitialized variable in struct netconn

using patch from Karol Domagalski
This commit is contained in:
Dirk Ziegelmeier 2019-01-18 20:51:58 +01:00
parent ea14b774c8
commit 926e399355

View File

@ -716,6 +716,9 @@ netconn_alloc(enum netconn_type t, netconn_callback callback)
conn->pending_err = ERR_OK; conn->pending_err = ERR_OK;
conn->type = t; conn->type = t;
conn->pcb.tcp = NULL; 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 */ /* If all sizes are the same, every compiler should optimize this switch to nothing */
switch (NETCONNTYPE_GROUP(t)) { switch (NETCONNTYPE_GROUP(t)) {