cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl-7.10.1: segmentation fault following new URL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 28 Oct 2002 15:47:51 +0100 (MET)

On Mon, 28 Oct 2002 kromJx_at_crosswinds.net wrote:

> > 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)

Well, you seems to have applied more than just the patch I linked to.

> 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 :-(

How odd...

> Time to get that cvs checkout started...

I put a 7.10.2-pre1 version up on the site just a few hours ago, you could
get that one and have a go!

        http://curl.haxx.se/beta/

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-28