]> granicus.if.org Git - curl/commitdiff
curl_easy_duphandle() sets the magic number in the new handle
authorDaniel Stenberg <daniel@haxx.se>
Fri, 29 Dec 2006 11:32:14 +0000 (11:32 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 Dec 2006 11:32:14 +0000 (11:32 +0000)
CHANGES
RELEASE-NOTES
lib/easy.c

diff --git a/CHANGES b/CHANGES
index 208b717ea02b352c7eddb0aeff405041e7998d1e..9b8d5ca49b58eb3c9f295786a6d263add931e903 100644 (file)
--- 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
index d9132b39a765bedd740ab08ffd929eaeb0c6b7c5..b53e2a34a8d0093678ccaddefcc75e8014833dfb 100644 (file)
@@ -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:
 
index 17b9faf0921667a941cc0ced55088675ea5f9610..f78daedc56f457f97cbe63f57cccdaefc361f3a3 100644 (file)
@@ -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);