From: Rick Deist Date: Sun, 7 Oct 2018 16:18:03 +0000 (+0300) Subject: hostip: fix check on Curl_shuffle_addr return value X-Git-Tag: curl-7_62_0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3349a633b8b181bfd1825b36d8cca51f5a20defd;p=thirdparty%2Fcurl.git hostip: fix check on Curl_shuffle_addr return value Closes #3110 --- diff --git a/lib/hostip.c b/lib/hostip.c index 0dd0cbcbab..f589a0b2c0 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; }