summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Deist <dreckard@users.noreply.github.com>2018-10-07 19:18:03 +0300
committerDaniel Stenberg <daniel@haxx.se>2018-10-08 08:39:24 +0200
commit3349a633b8b181bfd1825b36d8cca51f5a20defd (patch)
tree271bb73543a6c7697a580d2d4fa6c777f2e10ca1
parente50a2002bd450a4800a165d2874ed79c95b33a07 (diff)
downloadcurl-3349a633b8b181bfd1825b36d8cca51f5a20defd.tar.gz
hostip: fix check on Curl_shuffle_addr return value
Closes #3110
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 0dd0cbcba..f589a0b2c 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -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;
}