mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Check for conn->ssl before using ssl_iwrite.
This commit is contained in:
parent
92676dafee
commit
5b575eef31
@ -1,3 +1,8 @@
|
||||
2001-12-13 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* http.c (gethttp): Check for conn->scheme, not u->scheme, before
|
||||
calling ssl_iwrite.
|
||||
|
||||
2001-12-13 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* version.c: Wget 1.8.1-pre1 is released.
|
||||
|
@ -857,7 +857,7 @@ Accept: %s\r\n\
|
||||
|
||||
/* Send the request to server. */
|
||||
#ifdef HAVE_SSL
|
||||
if (u->scheme == SCHEME_HTTPS)
|
||||
if (conn->scheme == SCHEME_HTTPS)
|
||||
num_written = ssl_iwrite (ssl, request, strlen (request));
|
||||
else
|
||||
#endif /* HAVE_SSL */
|
||||
@ -880,7 +880,7 @@ Accept: %s\r\n\
|
||||
/* Before reading anything, initialize the rbuf. */
|
||||
rbuf_initialize (&rbuf, sock);
|
||||
#ifdef HAVE_SSL
|
||||
if (u->scheme == SCHEME_HTTPS)
|
||||
if (conn->scheme == SCHEME_HTTPS)
|
||||
rbuf.ssl = ssl;
|
||||
else
|
||||
rbuf.ssl = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user