1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Fix crash due to untested null pointer occuring when doing

HTTP_PROXY=8080:proxy.ucv.cl elinks http://wwww.google.cl. Thanks to
Karel Zak.

[ From commit 947c1730a61900fd3443696182b6692f2669bf56 in ELinks 0.12.GIT.
  This crash occurs in ELinks 0.11.0 but not in 0.10.6.  --KON ]
This commit is contained in:
Laurent MONIN 2006-10-11 14:44:39 +02:00 committed by Kalle Olavi Niemitalo
parent 977a6df851
commit f835a27e25
2 changed files with 5 additions and 1 deletions

View File

@ -283,6 +283,9 @@ Karel Kulhavy <clock@atrey.karlin.mff.cuni.cz>
Fixed compile incompatibility
One of Links authors; a lot of misc. features & code
Karel Zak <kzak@redhat.com>
Minor bug fixes
Karsten Schölzel <kuser@gmx.de>
Event system chief engineer
Scripting subsystem hacking

View File

@ -538,7 +538,8 @@ loading_callback(struct download *download, struct session *ses)
}
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);
}