From 995598e41fc30868da44399c5cefc07c586aea50 Mon Sep 17 00:00:00 2001 From: mtheall Date: Sun, 23 Nov 2014 23:24:57 -0600 Subject: [PATCH] print command when it was invalid --- source/ftp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/ftp.c b/source/ftp.c index a1e8f5c..d58ce08 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -963,7 +963,10 @@ ftp_session_read_command(ftp_session_t *session) /* execute the command */ 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 command->handler(session, args); }