[patch]: proxy bugfix

Karel Zak <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
 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);
 	}

-- 
 Karel Zak  <[email protected]>
_______________________________________________
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.