Browse Source

Redundant close of file

vfs_close is always called with NULL since fsd->vfs_file checked against NULL at the beginning of function
pull/13/head
Murat Seker 8 years ago
committed by GitHub
parent
commit
d266cf666a
  1. 2
      ftpd.c

2
ftpd.c

@ -449,8 +449,6 @@ static void send_file(struct ftpd_datastate *fsd, struct tcp_pcb *pcb)
fsm = fsd->msgfs;
msgpcb = fsd->msgpcb;
vfs_close(fsd->vfs_file);
fsd->vfs_file = NULL;
ftpd_dataclose(pcb, fsd);
fsm->datapcb = NULL;
fsm->datafs = NULL;

Loading…
Cancel
Save