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:
parent
9528acb4b8
commit
a7f7053591
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue