summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-12-29 11:32:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-12-29 11:32:14 +0000
commitbd600fbebe7c0fdb314cb2a8015f1b89ea036b74 (patch)
treeb09898cc35ebd18f5e4378198057cd55484f20f2
parent064bbb999f25e630f2b36fcacb8e58535111b07d (diff)
downloadcurl-bd600fbebe7c0fdb314cb2a8015f1b89ea036b74.tar.gz
curl_easy_duphandle() sets the magic number in the new handle
-rw-r--r--CHANGES3
-rw-r--r--RELEASE-NOTES2
-rw-r--r--lib/easy.c2
3 files changed, 7 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 208b717ea..9b8d5ca49 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
Changelog
+Daniel (29 December 2006)
+- Make curl_easy_duphandle() set the magic number in the new handle.
+
Daniel (22 December 2006)
- Robert Foreman provided a prime example snippet showing how libcurl would
get confused and not acknowledge the 'no_proxy' variable properly once it
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index d9132b39a..b53e2a34a 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -40,6 +40,8 @@ This release includes the following bugfixes:
o using proxy and URLs without protocol prefixes
o first using a proxy and then accessing a site that 'no_proxy' matched,
would still make libcurl use the proxy...
+ o curl_easy_duphandle() now makes a handle that is valid for the multi
+ interface since the magic number is set fine
Other curl-related news:
diff --git a/lib/easy.c b/lib/easy.c
index 17b9faf09..f78daedc5 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -618,6 +618,8 @@ CURL *curl_easy_duphandle(CURL *incurl)
Curl_easy_initHandleData(outcurl);
+ outcurl->magic = CURLEASY_MAGIC_NUMBER;
+
fail = FALSE; /* we reach this point and thus we are OK */
} while(0);