summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Ziegelmeier <[email protected]>2019-01-18 20:51:58 +0100
committerSimon Goldschmidt <[email protected]>2019-02-18 12:56:51 +0100
commitcd9164799947e54e686efaedda15f56b8a4a3bf1 (patch)
tree61d4622cdb78842dceb46e1e910733f31dfa63f9
parent5cc46d7989fe3c61b15c4f15988c2e1a802acf6b (diff)
Fix bug #55513: Uninitialized variable in struct netconn
using patch from Karol Domagalski (cherry picked from commit 926e39935517acc16856ddd44598b3f7815efeba)
-rw-r--r--src/api/api_msg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/api_msg.c b/src/api/api_msg.c
index 39531024..3f08e038 100644
--- a/src/api/api_msg.c
+++ b/src/api/api_msg.c
@@ -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)) {