From: Victor Julien Date: Tue, 11 Jun 2019 10:08:50 +0000 (+0200) Subject: ftp: be more strict with tx type X-Git-Tag: suricata-5.0.0-rc1~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ae691155d9ffaf0077b6b92b98440a3824491db;p=thirdparty%2Fsuricata.git ftp: be more strict with tx type --- diff --git a/src/app-layer-ftp.c b/src/app-layer-ftp.c index 8e5ce530b2..0916b2ac75 100644 --- a/src/app-layer-ftp.c +++ b/src/app-layer-ftp.c @@ -123,7 +123,7 @@ uint64_t ftp_config_memcap = 0; SC_ATOMIC_DECLARE(uint64_t, ftp_memuse); SC_ATOMIC_DECLARE(uint64_t, ftp_memcap); -static void *FTPGetOldestTx(FtpState *); +static FTPTransaction *FTPGetOldestTx(FtpState *); static void FTPParseMemcap(void) { @@ -901,7 +901,7 @@ static int FTPSetTxDetectState(void *vtx, DetectEngineState *de_state) * * \retval transaction pointer when a transaction was found; NULL otherwise. */ -static void *FTPGetOldestTx(FtpState *ftp_state) +static FTPTransaction *FTPGetOldestTx(FtpState *ftp_state) { if (unlikely(!ftp_state)) { SCLogDebug("NULL state object; no transactions available");