From: Victor Julien Date: Tue, 11 Jun 2019 11:33:49 +0000 (+0200) Subject: ftp: reply code 150 doesn't end tx X-Git-Tag: suricata-5.0.0-rc1~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=343ba459169b85dbb1d6d3b11e82a31701f89773;p=thirdparty%2Fsuricata.git ftp: reply code 150 doesn't end tx --- diff --git a/src/app-layer-ftp.c b/src/app-layer-ftp.c index b8c62b866b..bc8323afd8 100644 --- a/src/app-layer-ftp.c +++ b/src/app-layer-ftp.c @@ -824,6 +824,10 @@ static int FTPParseResponse(Flow *f, void *ftp_state, AppLayerParserState *pstat } } + if (input_len >= 4 && SCMemcmp("150 ", input, 4) == 0) { + return retcode; + } + tx_complete: tx->done = true; return retcode;