From: Denys Vlasenko <vda.linux@googlemail.com>
Date: Mon, 5 Feb 2018 18:06:40 +0000 (+0100)
Subject: ftpd: handle restarts past 2147483647 bytes. closes 10741
X-Git-Tag: 1_29_0~269
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5740e15de55baa343955196c641baeaec8a73b5c;p=oweals%2Fbusybox.git

ftpd: handle restarts past 2147483647 bytes. closes 10741

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
---

diff --git a/networking/ftpd.c b/networking/ftpd.c
index dd0fc4e92..8abbf7f57 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);
 }