1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

connect2: log dereferences things that may have been destroyed

It's perfectly possible we will have destroyed the wsi and report that
back in the return code.  So let's not dumbly defreference the wsi to
make a log inbetweentimes.

Found with fault injection and valgrind.
This commit is contained in:
Andy Green 2021-03-10 15:02:45 +00:00
parent 9528acb4b8
commit a7f7053591

View file

@ -333,9 +333,6 @@ solo:
LWS_ADNS_RECORD_A, lws_client_connect_3_connect,
wsi, NULL);
lwsl_notice("%s: %s: post async dns, state 0x%x\n",
__func__, lws_wsi_tag(wsi), lwsi_state(wsi));
if (n == LADNS_RET_FAILED_WSI_CLOSED)
return NULL;