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 /networking/ftpd.c | |
parent | c2a51b0cf16918482c993c4998a2a920e499a43f (diff) |
ftpd: handle restarts past 2147483647 bytes. closes 10741
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpd.c')
-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 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); } |