1
0
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:
hniksic 2001-12-13 08:46:56 -08:00
parent 92676dafee
commit 5b575eef31
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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;