Skip to content

Commit dc16c69

Browse files
committed
Initialize dlhandler.total_downloaded in case dlmap_init() fails.
Spotted by canalyze.
1 parent 8d3eae3 commit dc16c69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ftpd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,6 +3316,7 @@ void doretr(char *name)
33163316
double started = 0.0;
33173317
int ret;
33183318

3319+
dlhandler.total_downloaded = 0;
33193320
if (!candownload) {
33203321
addreply(550, MSG_LOAD_TOO_HIGH, load);
33213322
goto end;

0 commit comments

Comments
 (0)