ftp: Generalize prelim positive reply

Extend special case for reply code 150 to handle all preliminary
positive reply -- reply codes with `1xy`.
pull/4046/head
Jeff Lucovsky 5 years ago committed by Victor Julien
parent 343ba45916
commit 911d423a6b

@ -824,7 +824,8 @@ static int FTPParseResponse(Flow *f, void *ftp_state, AppLayerParserState *pstat
}
}
if (input_len >= 4 && SCMemcmp("150 ", input, 4) == 0) {
/* Handle preliminary replies -- keep tx open */
if (FTPIsPPR(input, input_len)) {
return retcode;
}
@ -833,6 +834,7 @@ tx_complete:
return retcode;
}
#ifdef DEBUG
static SCMutex ftp_state_mem_lock = SCMUTEX_INITIALIZER;
static uint64_t ftp_state_memuse = 0;

Loading…
Cancel
Save