From 947c1730a61900fd3443696182b6692f2669bf56 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Wed, 11 Oct 2006 14:44:39 +0200 Subject: [PATCH] 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. --- AUTHORS | 1 + src/session/task.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 56b3c065..54620b4a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -291,6 +291,7 @@ Karel Kulhavy Karel Zak Support for negotiate-auth based on GSSAPI + Minor bug fixes Karsten Schölzel Event system chief engineer diff --git a/src/session/task.c b/src/session/task.c index f1ee9a4a..d5be8b11 100644 --- a/src/session/task.c +++ b/src/session/task.c @@ -539,8 +539,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, - download->pri); + print_error_dialog(ses, download->state, + download->conn ? download->conn->uri : NULL, download->pri); if (d == DO_MOVE_ABORT) reload(ses, CACHE_MODE_NORMAL); }