]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve/ftp: Modifications for MPM-enabled command descriptor table
authorJeff Lucovsky <jeff@lucovsky.org>
Fri, 23 Aug 2019 00:09:03 +0000 (20:09 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 26 Aug 2019 08:15:10 +0000 (10:15 +0200)
src/output-json-ftp.c

index 251d5f878d16f93fc61b64c1cb1476457b05e50a..cefa428f662ed7c3e046c00674b425bc1a21ed72 100644 (file)
@@ -86,8 +86,7 @@ static json_t *JsonFTPLogCommand(Flow *f, FTPTransaction *tx)
         }
     }
 
-    json_object_set_new(cjs, "command",
-                        json_string(tx->command_descriptor->command_name_upper));
+    json_object_set_new(cjs, "command", json_string(tx->command_descriptor->command_name));
     uint32_t min_length = tx->command_descriptor->command_length + 1; /* command + space */
     if (tx->request_length > min_length) {
         json_object_set_new(cjs, "command_data",