From 03bdacbe7f7b846a70a0f3fbc78965ef62f1afc1 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Sat, 6 Jul 2019 11:23:21 +0200 Subject: [PATCH] fix bug in storing UDP remote address (causing loss of UDP data) --- libraries/ESP8266WiFi/src/include/UdpContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ESP8266WiFi/src/include/UdpContext.h b/libraries/ESP8266WiFi/src/include/UdpContext.h index 540217d2fa..59403dbdf8 100644 --- a/libraries/ESP8266WiFi/src/include/UdpContext.h +++ b/libraries/ESP8266WiFi/src/include/UdpContext.h @@ -475,7 +475,7 @@ class UdpContext } // construct in place new(PBUF_ALIGNER(pb_helper->payload)) AddrHelper(srcaddr, TEMPDSTADDR, srcport); - pb->flags = PBUF_HELPER_FLAG; // mark helper pbuf + pb_helper->flags = PBUF_HELPER_FLAG; // mark helper pbuf // chain it pbuf_cat(_rx_buf, pb_helper);