diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-04 08:47:37 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-04 08:47:37 +0000 |
commit | 0bb13ab6c574663488b7e722a587b95ad975d5e8 (patch) | |
tree | f87402f4a5103071293bfce578bd880a6864fead /url.c | |
parent | add comments for news: URL (diff) | |
download | w3m-0bb13ab6c574663488b7e722a587b95ad975d5e8.tar.gz w3m-0bb13ab6c574663488b7e722a587b95ad975d5e8.zip |
[w3m-dev-en 00827] Re: w3m-cvs segfaults on news://<mid> URLs
* url.c (openURL): check pu->file for news:
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | url.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)); } |