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

COV265479: asyn dns check retrun from retry api

Actually we are scheduling the first retry in case nothing comes
back from the server, it won't fail since it will allow at least
one retry, this being udp.
This commit is contained in:
Andy Green 2020-01-22 08:55:24 +00:00
parent 0e1b4cf389
commit 0c35ab32df

View file

@ -716,8 +716,9 @@ lws_async_dns_query(struct lws_context *context, int tsi, const char *name,
q->standalone_cb = cb;
/* schedule a retry according to the retry policy on the wsi */
lws_retry_sul_schedule_retry_wsi(dns->wsi, &q->sul,
lws_async_dns_sul_cb_retry, &q->retry);
if (lws_retry_sul_schedule_retry_wsi(dns->wsi, &q->sul,
lws_async_dns_sul_cb_retry, &q->retry))
goto failed;
/*
* We may rewrite the copy at +sizeof(*q) for CNAME recursion. Keep