1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 06:25:03 -05:00

hostip: fix check on Curl_shuffle_addr return value

Closes #3110
This commit is contained in:
Rick Deist 2018-10-07 19:18:03 +03:00 committed by Daniel Stenberg
parent e50a2002bd
commit 3349a633b8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -455,7 +455,7 @@ Curl_cache_addr(struct Curl_easy *data,
/* shuffle addresses if requested */ /* shuffle addresses if requested */
if(data->set.dns_shuffle_addresses) { if(data->set.dns_shuffle_addresses) {
CURLcode result = Curl_shuffle_addr(data, &addr); CURLcode result = Curl_shuffle_addr(data, &addr);
if(!result) if(result)
return NULL; return NULL;
} }