From 3349a633b8b181bfd1825b36d8cca51f5a20defd Mon Sep 17 00:00:00 2001
From: Rick Deist <dreckard@users.noreply.github.com>
Date: Sun, 7 Oct 2018 19:18:03 +0300
Subject: [PATCH 160/557] hostip: fix check on Curl_shuffle_addr return value

Closes #3110
---
 lib/hostip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/hostip.c b/lib/hostip.c
index 0dd0cbc..f589a0b 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -454,7 +454,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;
   }
 
-- 
1.8.3.1

