cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: CURLOPT_PRIVATE returning incorrect values for delayed documents : Possible bug

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 11 Nov 2008 14:38:41 +0100 (CET)

On Tue, 11 Nov 2008, Sharad Kumar Singh wrote:

First: you're talking libcurl here and then curl-library is really the list
you want to use. This list is for the curl tool.

> char s_Id[512]={'\0',};
> curl_easy_setopt(http_handle, CURLOPT_PRIVATE, s_Id);

Here you set the address of a local array you have on the stack.

> curl_easy_setopt(http_handle2, CURLOPT_PRIVATE, s_Id);

And lookie, this handle gets the same pointer...

> curl_easy_setopt(http_handle3, CURLOPT_PRIVATE, s_Id);

... and this does too.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-11-11