summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-08 18:12:26 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-08 18:12:26 +0000
commitccd9e03b629f4dd820122fd0426b86950b607cf4 (patch)
treed0497dbf5e6ee8e746bbda541c47de7c4bbe5e0f
parent8caa6b08b449c05f2bdf83cfd2fcc6554e9b425e (diff)
downloadnavit-ccd9e03b629f4dd820122fd0426b86950b607cf4.tar.gz
Fix:map_binfile:Avoid checking for redirect of non-existing connection
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3891 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/map/binfile/binfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/map/binfile/binfile.c b/navit/map/binfile/binfile.c
index abe46e076..7bf0c93c5 100644
--- a/navit/map/binfile/binfile.c
+++ b/navit/map/binfile/binfile.c
@@ -1059,7 +1059,7 @@ download_download(struct map_download *download)
if (!size)
return 1;
data=file_data_read_special(download->http, size, &size_ret);
- if (!download->read && map_binfile_handle_redirect(download->m)) {
+ if (!download->read && download->m->http && map_binfile_handle_redirect(download->m)) {
g_free(data);
download_request(download);
return 0;