#1162 evhiperfifo.c has a bug

closed-fixed
5
2014-08-14
2012-11-01
No

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,

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2012-11-01
    • milestone: --> wrong_content
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks