diff --git a/ftpd.c b/ftpd.c index 1f4874a..832861e 100644 --- a/ftpd.c +++ b/ftpd.c @@ -945,7 +945,13 @@ static void cmd_abrt(const char *arg, struct tcp_pcb *pcb, struct ftpd_msgstate static void cmd_type(const char *arg, struct tcp_pcb *pcb, struct ftpd_msgstate *fsm) { dbg_printf("Got TYPE -%s-\n", arg); - send_msg(pcb, fsm, msg502); + + if(strcmp(arg, "I") != 0) { + send_msg(pcb, fsm, msg502); + return; + } + + send_msg(pcb, fsm, msg200); } static void cmd_mode(const char *arg, struct tcp_pcb *pcb, struct ftpd_msgstate *fsm)