cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl-7.10.1: segmentation fault following new URL

From: <kromJx_at_crosswinds.net>
Date: Mon, 28 Oct 2002 08:11:01 EST

Daniel Stenberg:
> Try this patch:
>
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/curl/curl/lib/transfer.c.diff?r1=1.119&r2=1.120

Thank you. Unfortunately it doesn't work with 7.10.1

transfer.c: In function `Curl_readwrite':
transfer.c:297: `HEADER_ALLBAD' undeclared (first use in this function)
transfer.c:297: (Each undeclared identifier is reported only once
transfer.c:297: for each function it appears in.)
transfer.c:351: `HEADER_PARTHEADER' undeclared (first use in this function)
transfer.c:875: `HEADER_NORMAL' undeclared (first use in this function)
transfer.c: In function `Curl_pretransfer':
transfer.c:1223: structure has no member named `cookielist'
transfer.c:1224: structure has no member named `cookielist'
transfer.c:1231: structure has no member named `cookielist'
transfer.c:1232: structure has no member named `cookielist'

At this point it seems that I have to either checkout the full sources
of the latest version or just apply the following patch only:

@@ -1351,7 +1391,7 @@
       return CURLE_OUT_OF_MEMORY; /* go out from this */

     sprintf(newest, "%s%s%s", url_clone,
- (('/' == useurl[0]) || !*protsep)?"":"/",
+ (('/' == useurl[0]) || (protsep && !*protsep))?"":"/",
             useurl);
     free(newurl); /* newurl is the allocated pointer */
     free(url_clone);

I tried the latter, but it didn't work. 'curl' will not automatically
follow the new URL location :-(

Time to get that cvs checkout started...

___________________________________
Build high quality traffic with the Web's Premier traffic building system. 2 to 1 ratio! http://www.itrafficstar.com/?ref=6

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-28