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

Prevent a longjmp warning by moving the rc assign within Curl_resolv().

Andy Cedilnik reported. Warning on HP-UX?
parent 34750cc7
No related branches found
No related tags found
No related merge requests found
......@@ -378,9 +378,7 @@ int Curl_resolv(struct connectdata *conn,
int wait;
struct SessionHandle *data = conn->data;
CURLcode result;
/* default to failure */
int rc = CURLRESOLV_ERROR;
int rc;
*entry = NULL;
#ifdef HAVE_SIGSETJMP
......@@ -413,6 +411,8 @@ int Curl_resolv(struct connectdata *conn,
/* free the allocated entry_id again */
free(entry_id);
rc = CURLRESOLV_ERROR; /* default to failure */
if (!dns) {
/* The entry was not in the cache. Resolve it to IP address */
......
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