From: Victor Julien Date: Sun, 8 Mar 2020 07:29:44 +0000 (+0100) Subject: ftp: minor code cleanups X-Git-Tag: suricata-6.0.0-beta1~649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=157d01e87e7b6172fbd7e7be80cf92bd57852d2c;p=thirdparty%2Fsuricata.git ftp: minor code cleanups --- diff --git a/src/app-layer-ftp.c b/src/app-layer-ftp.c index 5561c28324..5f0623b2f0 100644 --- a/src/app-layer-ftp.c +++ b/src/app-layer-ftp.c @@ -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: