Browse Source

Merge pull request #16 from mseker-issd/patch-6

Fix unhandled TYPE command
pull/18/head
Philipp Tölke 8 years ago
committed by GitHub
parent
commit
34bc800257
  1. 8
      ftpd.c

8
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)

Loading…
Cancel
Save