diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-09 15:27:14 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-09 15:27:14 +0000 |
commit | 669df39333ebf01e1c281d281d02ddeee9b3e8b1 (patch) | |
tree | 9837f6161dd12af4db8e22f185e7ba224dce422a /frame.c | |
parent | fix indent (diff) | |
download | w3m-669df39333ebf01e1c281d281d02ddeee9b3e8b1.tar.gz w3m-669df39333ebf01e1c281d281d02ddeee9b3e8b1.zip |
[w3m-dev 03034] check buf
* frame.c (frame_download_source): buf->ssl_certificate can be used
only if buf != NULL && buf != NO_BUFFER
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | frame.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: frame.c,v 1.11 2002/02/08 11:45:07 ukai Exp $ */ +/* $Id: frame.c,v 1.12 2002/02/09 15:27:14 ukai Exp $ */ #include "fm.h" #include "parsetagx.h" #include "myctype.h" @@ -388,7 +388,8 @@ frame_download_source(struct frame_body *b, ParsedURL *currentURL, b->referer, flag | RG_FRAME_SRC, b->request); #ifdef USE_SSL /* XXX certificate? */ - b->ssl_certificate = buf->ssl_certificate; + if (buf && buf != NO_BUFFER) + b->ssl_certificate = buf->ssl_certificate; #endif w3m_dump &= ~DUMP_FRAME; is_redisplay = FALSE; |