diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-05 19:06:40 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-05 19:06:40 +0100 |
commit | 5740e15de55baa343955196c641baeaec8a73b5c (patch) | |
tree | 2ced4902289100326e277d479ad52a7223bda47e | |
parent | c2a51b0cf16918482c993c4998a2a920e499a43f (diff) | |
download | busybox-w32-5740e15de55baa343955196c641baeaec8a73b5c.tar.gz busybox-w32-5740e15de55baa343955196c641baeaec8a73b5c.tar.bz2 busybox-w32-5740e15de55baa343955196c641baeaec8a73b5c.zip |
ftpd: handle restarts past 2147483647 bytes. closes 10741
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ftpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
603 | handle_rest(void) | 603 | handle_rest(void) |
604 | { | 604 | { |
605 | /* When ftp_arg == NULL simply restart from beginning */ | 605 | /* When ftp_arg == NULL simply restart from beginning */ |
606 | G.restart_pos = G.ftp_arg ? xatoi_positive(G.ftp_arg) : 0; | 606 | G.restart_pos = G.ftp_arg ? XATOOFF(G.ftp_arg) : 0; |
607 | WRITE_OK(FTP_RESTOK); | 607 | WRITE_OK(FTP_RESTOK); |
608 | } | 608 | } |
609 | 609 | ||