]> granicus.if.org Git - curl/commitdiff
hostip: fix check on Curl_shuffle_addr return value
authorRick Deist <dreckard@users.noreply.github.com>
Sun, 7 Oct 2018 16:18:03 +0000 (19:18 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Oct 2018 06:39:24 +0000 (08:39 +0200)
Closes #3110

lib/hostip.c

index 0dd0cbcbabcff23ee8f6c233028761f606d7fdf1..f589a0b2c057e2882ee35a1200bde060407671ea 100644 (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;
   }