]> sjero.net Git - wget/commitdiff
[svn] Call ssl_iread with the correct arguments.
authorhniksic <devnull@localhost>
Thu, 18 Sep 2003 11:43:00 +0000 (04:43 -0700)
committerhniksic <devnull@localhost>
Thu, 18 Sep 2003 11:43:00 +0000 (04:43 -0700)
src/ChangeLog
src/retr.c

index 76a4cbb77a6783cb14c0a5c9d4c11dd5ede7c8d0..094aa5ea5ae2a3683c298dedf1bc3358a48fc776 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * retr.c (get_contents): Pass the correct argument to ssl_iread.
+
 2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * safe-ctype.h: Don't #define ctype.h macros to errors because
index 4328aad661f024f3321db1d7af6a8fa860150029..8f1f4394682993bd87e8cd539c0d604968318a0a 100644 (file)
@@ -191,7 +191,7 @@ get_contents (int fd, FILE *fp, long *len, long restval, long expected,
                            ? 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);