Browse Source

Free resources on remote close

Fix typo
pull/19/head
Murat Seker 8 years ago
committed by GitHub
parent
commit
5987e9f455
  1. 2
      ftpd.c

2
ftpd.c

@ -1264,7 +1264,7 @@ static err_t ftpd_msgrecv(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t
free(text);
}
pbuf_free(p);
} else if (err == ERR_OK && p != NULL) {
} else if (err == ERR_OK && p == NULL) {
ftpd_msgclose(pcb, fsm);
}

Loading…
Cancel
Save