]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ftp: minor code cleanups
authorVictor Julien <victor@inliniac.net>
Sun, 8 Mar 2020 07:29:44 +0000 (08:29 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Mar 2020 21:02:19 +0000 (22:02 +0100)
src/app-layer-ftp.c

index 5561c28324f2911d197b57e3e3a5402b34c52c77..5f0623b2f03664dc7f2f23fd0de5ab9b621ea5ce 100644 (file)
@@ -577,7 +577,9 @@ static int FTPParseRequest(Flow *f, void *ftp_state,
     while (FTPGetLine(state) >= 0) {
         const FtpCommand *cmd_descriptor;
 
-        if (!FTPParseRequestCommand(thread_data, state->current_line, state->current_line_len, &cmd_descriptor)) {
+        if (!FTPParseRequestCommand(thread_data,
+                    state->current_line, state->current_line_len,
+                    &cmd_descriptor)) {
             state->command = FTP_COMMAND_UNKNOWN;
             continue;
         }
@@ -590,7 +592,8 @@ static int FTPParseRequest(Flow *f, void *ftp_state,
         state->curr_tx = tx;
 
         tx->command_descriptor = cmd_descriptor;
-        tx->request_length = CopyCommandLine(&tx->request, state->current_line, state->current_line_len);
+        tx->request_length = CopyCommandLine(&tx->request,
+                state->current_line, state->current_line_len);
 
         switch (state->command) {
             case FTP_COMMAND_EPRT: