ftpd: handle restarts past 2147483647 bytes. closes 10741
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -603,7 +603,7 @@ static void
|
|||||||
handle_rest(void)
|
handle_rest(void)
|
||||||
{
|
{
|
||||||
/* When ftp_arg == NULL simply restart from beginning */
|
/* When ftp_arg == NULL simply restart from beginning */
|
||||||
G.restart_pos = G.ftp_arg ? xatoi_positive(G.ftp_arg) : 0;
|
G.restart_pos = G.ftp_arg ? XATOOFF(G.ftp_arg) : 0;
|
||||||
WRITE_OK(FTP_RESTOK);
|
WRITE_OK(FTP_RESTOK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user