From 2d56df67cd7f6efac2607e625c72c379fd6c3601 Mon Sep 17 00:00:00 2001 From: Josef Gajdusek Date: Tue, 5 May 2015 23:48:21 +0200 Subject: [PATCH] esp8266: Initialize socket->connlist to NULL This was causing crashes in .onconnect() --- esp8266/modesp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/esp8266/modesp.c b/esp8266/modesp.c index f86273d175..ac9da09a56 100644 --- a/esp8266/modesp.c +++ b/esp8266/modesp.c @@ -70,6 +70,7 @@ STATIC mp_obj_t esp_socket_make_new_base() { s->cb_recv = mp_const_none; s->cb_disconnect = mp_const_none; s->fromserver = false; + s->connlist = NULL; return s; }