Prevent a longjmp warning by moving the rc assign within Curl_resolv().
Andy Cedilnik reported. Warning on HP-UX?
This commit is contained in:
parent
34750cc738
commit
6d1b37b3da
@ -378,9 +378,7 @@ int Curl_resolv(struct connectdata *conn,
|
|||||||
int wait;
|
int wait;
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
CURLcode result;
|
CURLcode result;
|
||||||
|
int rc;
|
||||||
/* default to failure */
|
|
||||||
int rc = CURLRESOLV_ERROR;
|
|
||||||
*entry = NULL;
|
*entry = NULL;
|
||||||
|
|
||||||
#ifdef HAVE_SIGSETJMP
|
#ifdef HAVE_SIGSETJMP
|
||||||
@ -413,6 +411,8 @@ int Curl_resolv(struct connectdata *conn,
|
|||||||
/* free the allocated entry_id again */
|
/* free the allocated entry_id again */
|
||||||
free(entry_id);
|
free(entry_id);
|
||||||
|
|
||||||
|
rc = CURLRESOLV_ERROR; /* default to failure */
|
||||||
|
|
||||||
if (!dns) {
|
if (!dns) {
|
||||||
/* The entry was not in the cache. Resolve it to IP address */
|
/* The entry was not in the cache. Resolve it to IP address */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user