Re: [patch]: proxy bugfix

Laurent MONIN <[email protected]>
Newsgroups gmane.comp.web.links
Organization NORZ.ORG
Message-ID <[email protected]>
Karel Zak wrote:
>  Hi folks,
>
>  the latest stable elinks version crashes on:
>
>      HTTP_PROXY=8080:proxy.ucv.cl elinks http://wwww.google.cl
>
>  you can try it with gdb and you will see that download->conn is NULL.
>  I think unstable version has same problem (I didn't test it, but the
>  code looks same...)
>
>     Karel
>
>
> --- elinks-0.11.1/src/session/task.c.kzak	2006-10-11 09:26:28.000000000 +0200
> +++ elinks-0.11.1/src/session/task.c	2006-10-11 09:27:29.000000000 +0200
> @@ -538,7 +538,8 @@
>  	}
>  
>  	if (is_in_result_state(download->state) && download->state != S_OK) {
> -		print_error_dialog(ses, download->state, download->conn->uri,
> +		print_error_dialog(ses, download->state, 
> +				   download->conn ? download->conn->uri : NULL,
>  				   download->pri);
>  		if (d == DO_MOVE_ABORT) reload(ses, CACHE_MODE_NORMAL);
>  	}
>
>   
Hi Karel,

    your fix was committed to GIT tree.

Thank you.

--

Zas
_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.