hostip: fix check on Curl_shuffle_addr return value

Closes #3110
This commit is contained in:
Rick Deist 2018-10-07 19:18:03 +03:00 committed by Daniel Stenberg
parent e50a2002bd
commit 3349a633b8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ Curl_cache_addr(struct Curl_easy *data,
/* shuffle addresses if requested */
if(data->set.dns_shuffle_addresses) {
CURLcode result = Curl_shuffle_addr(data, &addr);
if(!result)
if(result)
return NULL;
}