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-3582407 ] evhiperfifo.c has a bug

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 01 Nov 2012 06:21:39 -0700

Bugs item #3582407, was opened at 2012-10-31 23:29
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3582407&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: documentation
>Group: wrong content
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Oscar Norlander (oscar-norlander)
Assigned to: Daniel Stenberg (bagder)
Summary: evhiperfifo.c has a bug

Initial Comment:
The evhiperfifo.c example (I looked at http://curl.haxx.se/libcurl/c/evhiperfifo.html) has a bug.

In function new_conn(char *url, GlobalInfo *g ) there is a line:

curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);

It should be:
curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn);

I have verified this by looking at the ConnInfo *conn in write_cb in gdb,

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

Comment By: Daniel Stenberg (bagder)
Date: 2012-11-01 06:21

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=3582407&group_id=976
Received on 2012-11-01

These mail archives are generated by hypermail.

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

File upload with ASP.NET