Submitted by Ian Abbott in <
3B7A98A1.24985.9EF692@localhost>
+2001-08-15 Ian Abbott <abbotti@mev.co.uk>
+
+ * ftp.c (ftp_loop_internal): Avoid a potential buffer overflow in
+ the call to the 'rate' function by moving it past the error
+ checking for the 'getftp' function return value.
+
2001-11-16 Hrvoje Niksic <hniksic@arsdigita.com>
* html-parse.c (advance_declaration): Use 0x22 instead of '"' or
else
len = 0;
err = getftp (u, &len, restval, con);
- /* Time? */
- tms = time_str (NULL);
- tmrate = rate (len - restval, con->dltime, 0);
if (!rbuf_initialized_p (&con->rbuf))
con->st &= ~DONE_CWD;
/* Not as great. */
abort ();
}
+ /* Time? */
+ tms = time_str (NULL);
+ tmrate = rate (len - restval, con->dltime, 0);
/* If we get out of the switch above without continue'ing, we've
successfully downloaded a file. Remember this fact. */