From 5740e15de55baa343955196c641baeaec8a73b5c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 5 Feb 2018 19:06:40 +0100 Subject: ftpd: handle restarts past 2147483647 bytes. closes 10741 Signed-off-by: Denys Vlasenko --- networking/ftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/ftpd.c') diff --git a/networking/ftpd.c b/networking/ftpd.c index dd0fc4e..8abbf7f 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c @@ -603,7 +603,7 @@ static void handle_rest(void) { /* 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); } -- cgit v1.1