Skip to content
Snippets Groups Projects
Commit b1da9817 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make sure the 'done' variable is always set to something in the

Curl_is_resolved() function
parent 0496598e
No related branches found
No related tags found
No related merge requests found
...@@ -408,13 +408,13 @@ CURLcode Curl_is_resolved(struct connectdata *conn, bool *done) ...@@ -408,13 +408,13 @@ CURLcode Curl_is_resolved(struct connectdata *conn, bool *done)
if(count) if(count)
ares_process(data->state.areschannel, &read_fds, &write_fds); ares_process(data->state.areschannel, &read_fds, &write_fds);
*done = FALSE;
if(conn->async.done) { if(conn->async.done) {
if(!conn->async.dns) if(!conn->async.dns)
return CURLE_COULDNT_RESOLVE_HOST; return CURLE_COULDNT_RESOLVE_HOST;
*done = TRUE; *done = TRUE;
} }
else
*done = FALSE;
return CURLE_OK; return CURLE_OK;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment