aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 22:41:42 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 22:41:42 +0000
commitaa74d020256e90385651d3cab9b5969e2a181b52 (patch)
tree7116bb78bf952e8fa02434f48947df2fbc2f4beb
parent[w3m-dev 02529] (diff)
downloadw3m-aa74d020256e90385651d3cab9b5969e2a181b52.tar.gz
w3m-aa74d020256e90385651d3cab9b5969e2a181b52.zip
[w3m-dev 02530] segfault for bad cookie from local
From: Fumitoshi UKAI <ukai@debian.or.jp>
-rw-r--r--ChangeLog5
-rw-r--r--file.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 68c7e4d..0926c17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2001-11-24 Fumitoshi UKAI <ukai@debian.or.jp>
+ * [w3m-dev 02530]
+ * file.c (readHeader): NULL check for domain
+
+2001-11-24 Fumitoshi UKAI <ukai@debian.or.jp>
+
* [w3m-dev 02529]
* configure (ask_choice): fix bugs
* configure (include_opt): disable as much as if baby model
diff --git a/file.c b/file.c
index b1b72a6..72b919b 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.12 2001/11/23 21:22:02 ukai Exp $ */
+/* $Id: file.c,v 1.13 2001/11/23 22:41:42 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -652,7 +652,8 @@ readHeader(URLFile * uf,
if (fmInitialized && (err & COO_OVERRIDE_OK) &&
accept_bad_cookie == PERHAPS) {
Str msg = Sprintf("Accept bad cookie from %s for %s? (y or n) ",
- pu->host, domain->ptr);
+ pu->host,
+ domain && domain->ptr ? domain->ptr : "<localdomain>");
if (msg->length > COLS - 4)
Strshrink(msg, msg->length - (COLS - 4));
term_raw();