aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--url.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1be154c..84cf75a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-04 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev-en 00827] Re: w3m-cvs segfaults on news://<mid> URLs
+ * url.c (openURL): check pu->file for news:
+
2002-10-31 Fumitoshi UKAI <ukai@debian.or.jp>
* fix compilation warnings
@@ -4088,4 +4093,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.465 2002/10/31 09:37:39 ukai Exp $
+$Id: ChangeLog,v 1.466 2002/11/04 08:47:37 ukai Exp $
diff --git a/url.c b/url.c
index eede800..dd40994 100644
--- a/url.c
+++ b/url.c
@@ -1,4 +1,4 @@
-/* $Id: url.c,v 1.53 2002/11/02 18:12:06 ukai Exp $ */
+/* $Id: url.c,v 1.54 2002/11/04 08:47:38 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include <sys/socket.h>
@@ -1804,6 +1804,8 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
fprintf(fw, "ARTICLE %s\r\n", p);
}
else {
+ if (pu->file == NULL || *pu->file == '\0')
+ goto nntp_error;
/* pu-file contains '@' => news:<message-id> */
fprintf(fw, "ARTICLE <%s>\r\n", url_unquote(pu->file));
}