]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/ftp: Set buffer desc for ftp.dynamic_port 13231/head
authorJeff Lucovsky <jlucovsky@oisf.net>
Sun, 27 Apr 2025 12:53:34 +0000 (08:53 -0400)
committerVictor Julien <victor@inliniac.net>
Wed, 14 May 2025 05:35:28 +0000 (07:35 +0200)
Ensure that the buffer description is set for the ftp.dynamic_port
keyword.

src/detect-ftp-dynamic-port.c

index e3f7c0e7b95d711624a1ce8ee965f6a2321eaf0f..595ea977ac0b7ec1807fd765d13fb11f16038d5d 100644 (file)
@@ -111,6 +111,8 @@ void DetectFtpDynamicPortRegister(void)
     DetectAppLayerInspectEngineRegister(
             BUFFER_NAME, ALPROTO_FTP, SIG_FLAG_TOSERVER, 0, DetectEngineInspectGenericList, NULL);
 
+    DetectBufferTypeSetDescriptionByName(BUFFER_NAME, BUFFER_DESC);
+
     g_ftp_dynport_buffer_id = DetectBufferTypeGetByName(BUFFER_NAME);
 
     SCLogDebug("registering " BUFFER_NAME " rule option");