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: Wed, 31 Oct 2012 23:29:49 -0700

Bugs item #3582407, was opened at 2012-10-31 23:29
Message generated for change (Tracker Item Submitted) made by oscar-norlander
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: None
Status: Open
Resolution: None
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,

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

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