From 3349a633b8b181bfd1825b36d8cca51f5a20defd Mon Sep 17 00:00:00 2001 From: Rick Deist Date: Sun, 7 Oct 2018 19:18:03 +0300 Subject: 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 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; } -- cgit v1.2.1