Skip to content

Commit 2d56df6

Browse files
atxdpgeorge
authored andcommitted
esp8266: Initialize socket->connlist to NULL
This was causing crashes in .onconnect()
1 parent 57ebe1b commit 2d56df6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

esp8266/modesp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ STATIC mp_obj_t esp_socket_make_new_base() {
7070
s->cb_recv = mp_const_none;
7171
s->cb_disconnect = mp_const_none;
7272
s->fromserver = false;
73+
s->connlist = NULL;
7374
return s;
7475
}
7576

0 commit comments

Comments
 (0)