I've noticed the mistake as soon as I compiled with SSL (and saw the warnings):
2003-09-18 Hrvoje Niksic <[EMAIL PROTECTED]> * retr.c (get_contents): Pass the correct argument to ssl_iread. Index: src/retr.c =================================================================== RCS file: /pack/anoncvs/wget/src/retr.c,v retrieving revision 1.57 diff -u -r1.57 retr.c --- src/retr.c 2003/09/15 21:48:43 1.57 +++ src/retr.c 2003/09/18 11:41:56 @@ -191,7 +191,7 @@ ? MIN (expected - *len, dlbufsize) : dlbufsize); #ifdef HAVE_SSL if (rbuf->ssl!=NULL) - res = ssl_iread (rbuf->ssl, dlbufsize, amount_to_read); + res = ssl_iread (rbuf->ssl, dlbuf, amount_to_read); else #endif /* HAVE_SSL */ res = iread (fd, dlbuf, amount_to_read);