print command when it was invalid

This commit is contained in:
mtheall 2014-11-23 23:24:57 -06:00
parent 5b70094d72
commit 995598e41f

View File

@ -963,7 +963,10 @@ ftp_session_read_command(ftp_session_t *session)
/* execute the command */ /* execute the command */
if(command == NULL) if(command == NULL)
ftp_send_response(session, 502, "invalid command\r\n"); {
ftp_send_response(session, 502, "invalid command -> %s %s\r\n",
key.name, args);
}
else else
command->handler(session, args); command->handler(session, args);
} }