From 871f506d42d95d78d5b9184aa9b1f7cd699d1a71 Mon Sep 17 00:00:00 2001 From: Murat Seker Date: Sat, 6 May 2017 22:40:02 +0300 Subject: [PATCH] Remove redundant binding Binding to data port is not necessary since server does not support passive mode --- ftpd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ftpd.c b/ftpd.c index 07de009..f73a0ba 100644 --- a/ftpd.c +++ b/ftpd.c @@ -673,7 +673,6 @@ static int open_dataconnection(struct tcp_pcb *pcb, struct ftpd_msgstate *fsm) sfifo_init(&fsm->datafs->fifo, 2000); fsm->datapcb = tcp_new(); - tcp_bind(fsm->datapcb, (ip_addr_t*)&pcb->local_ip, 20); /* Tell TCP that this is the structure we wish to be passed for our callbacks. */ tcp_arg(fsm->datapcb, fsm->datafs);