1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +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 0734e1a1cb
commit 4a4200d680

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;