cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3481551 ] curl_easy_reset does not clear cached referer pointer

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 07 Feb 2012 14:12:56 -0800

Bugs item #3481551, was opened at 2012-01-29 23:40
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3481551&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
>Group: bad behaviour
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Michael Day (mikeday)
Assigned to: Daniel Stenberg (bagder)
Summary: curl_easy_reset does not clear cached referer pointer

Initial Comment:
curl_easy_reset clears all the saved user data, including the CURLOPT_REFERER string.

However, a pointer to this string has been saved in the change.referer field, which is not cleared. This can cause problems if another request is made without the user explicitly resetting CURLOPT_REFERER.

Suggested fix: clear the cached change.referer field (and any other similar fields) when curl_easy_reset is called.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2012-02-07 14:12

Message:
Thanks for the report, this problem is now fixed in the git repository.

To try it out, you either checkout/update your git clone:
http://curl.haxx.se/source.html

or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3481551&group_id=976
Received on 2012-02-07

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET