mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
async-dns: callback should leave caller deletion to caller
The guy calling the callback with LADNS_RET_FAILED is going to inform his caller that it failed... let him decide to close and fail the connection attempt.
This commit is contained in:
parent
f71b6035c8
commit
2b21c2d608
1 changed files with 5 additions and 1 deletions
|
@ -467,7 +467,11 @@ lws_client_connect_3_connect(struct lws *wsi, const char *ads,
|
|||
#if defined(LWS_WITH_SYS_ASYNC_DNS)
|
||||
if (n == LADNS_RET_FAILED) {
|
||||
lwsl_notice("%s: adns failed %s\n", __func__, ads);
|
||||
goto oom4;
|
||||
/*
|
||||
* Caller that is giving us LADNS_RET_FAILED will deal
|
||||
* with cleanup
|
||||
*/
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue