summaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-12 13:09:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-12 16:21:24 +0200
commit2b126cd7083ddf1308ebc447cabd1983b16a99fa (patch)
tree4318634139c6a12f1deee620db909c9255be7e8b /lib/easy.c
parent462d8378eace6fb74b0f34b87fc9babf55d23bea (diff)
downloadcurl-2b126cd7083ddf1308ebc447cabd1983b16a99fa.tar.gz
duphandle: make sure CURLOPT_RESOLVE is duplicated fine too
Verified in test 1502 now Fixes #2485 Closes #2486 Reported-by: Ernst Sjöstrand
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index c99758617..6b914353d 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -892,6 +892,9 @@ static CURLcode dupset(struct Curl_easy *dst, struct Curl_easy *src)
/* Duplicate mime data. */
result = Curl_mime_duppart(&dst->set.mimepost, &src->set.mimepost);
+ if(src->set.resolve)
+ dst->change.resolve = dst->set.resolve;
+
return result;
}