]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ftp: be more strict with tx type
authorVictor Julien <victor@inliniac.net>
Tue, 11 Jun 2019 10:08:50 +0000 (12:08 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 17 Jul 2019 06:21:54 +0000 (08:21 +0200)
src/app-layer-ftp.c

index 8e5ce530b2770bb152d307515110354aff396c2e..0916b2ac75b8667c5d448cbfa80f3940dcf10a87 100644 (file)
@@ -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");