diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-04-14 03:29:37 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-04-14 03:29:37 +0000 |
commit | 6f87e48d6124e161209e03fda7609f1bc774251c (patch) | |
tree | 6e462764c7189c50d1ccae80684da8f7c723f13b | |
parent | [w3m-dev 03873] SSL & compressed stream (diff) | |
download | w3m-6f87e48d6124e161209e03fda7609f1bc774251c.tar.gz w3m-6f87e48d6124e161209e03fda7609f1bc774251c.zip |
[w3m-dev 03875] Re: SSL & compressed stream
* file.c (loadGeneralFile): check t_buf != NULL
* url.c (openURL): don't initialize URLFile here
(init_stream): 0 clear URLFile
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | file.c | 5 | ||||
-rw-r--r-- | url.c | 4 |
3 files changed, 13 insertions, 5 deletions
@@ -1,5 +1,12 @@ 2003-04-14 Fumitoshi UKAI <ukai@debian.or.jp> + * [w3m-dev 03875] Re: SSL & compressed stream + * file.c (loadGeneralFile): check t_buf != NULL + * url.c (openURL): don't initialize URLFile here + (init_stream): 0 clear URLFile + +2003-04-14 Fumitoshi UKAI <ukai@debian.or.jp> + * [w3m-dev 03873] SSL & compressed stream * file.c (loadGeneralFile): always update ssl_certificate * url.c (openURL): initialize URLFile @@ -7738,4 +7745,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.823 2003/04/13 18:36:50 ukai Exp $ +$Id: ChangeLog,v 1.824 2003/04/14 03:29:37 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.221 2003/04/13 18:36:51 ukai Exp $ */ +/* $Id: file.c,v 1.222 2003/04/14 03:29:38 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -2043,7 +2043,8 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, t_buf->bufferprop |= BP_FRAME; } #ifdef USE_SSL - t_buf->ssl_certificate = f.ssl_certificate; + if (t_buf) + t_buf->ssl_certificate = f.ssl_certificate; #endif frame_source = flag & RG_FRAME_SRC; b = loadSomething(&f, pu.real_file ? pu.real_file : pu.file, proc, t_buf); @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.77 2003/04/13 18:36:51 ukai Exp $ */ +/* $Id: url.c,v 1.78 2003/04/14 03:29:38 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include <sys/socket.h> @@ -1437,6 +1437,7 @@ HTTPrequest(ParsedURL *pu, ParsedURL *current, HRequest *hr, TextList *extra) void init_stream(URLFile *uf, int scheme, InputStream stream) { + memset(uf, 0, sizeof(URLFile)); uf->stream = stream; uf->scheme = scheme; uf->encoding = ENC_7BIT; @@ -1497,7 +1498,6 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current, } } - memset(&uf, 0, sizeof uf); uf.scheme = pu->scheme; uf.url = parsedURL2Str(pu)->ptr; pu->is_nocache = (option->flag & RG_NOCACHE); |