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:
parent
0734e1a1cb
commit
4a4200d680
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