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> 2001-12-13 Hrvoje Niksic <hniksic@arsdigita.com>
* version.c: Wget 1.8.1-pre1 is released. * version.c: Wget 1.8.1-pre1 is released.

View File

@ -857,7 +857,7 @@ Accept: %s\r\n\
/* Send the request to server. */ /* Send the request to server. */
#ifdef HAVE_SSL #ifdef HAVE_SSL
if (u->scheme == SCHEME_HTTPS) if (conn->scheme == SCHEME_HTTPS)
num_written = ssl_iwrite (ssl, request, strlen (request)); num_written = ssl_iwrite (ssl, request, strlen (request));
else else
#endif /* HAVE_SSL */ #endif /* HAVE_SSL */
@ -880,7 +880,7 @@ Accept: %s\r\n\
/* Before reading anything, initialize the rbuf. */ /* Before reading anything, initialize the rbuf. */
rbuf_initialize (&rbuf, sock); rbuf_initialize (&rbuf, sock);
#ifdef HAVE_SSL #ifdef HAVE_SSL
if (u->scheme == SCHEME_HTTPS) if (conn->scheme == SCHEME_HTTPS)
rbuf.ssl = ssl; rbuf.ssl = ssl;
else else
rbuf.ssl = NULL; rbuf.ssl = NULL;