From: Victor Julien Date: Fri, 2 May 2025 13:00:04 +0000 (+0200) Subject: detect/ftpbounce: reuse generic hook X-Git-Tag: suricata-8.0.0-rc1~385 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3ae4b005e50447de1be7c641346c540b922fbee;p=thirdparty%2Fsuricata.git detect/ftpbounce: reuse generic hook --- diff --git a/src/detect-ftpbounce.c b/src/detect-ftpbounce.c index db54c71182..90d53182e2 100644 --- a/src/detect-ftpbounce.c +++ b/src/detect-ftpbounce.c @@ -67,10 +67,7 @@ void DetectFtpbounceRegister(void) sigmatch_table[DETECT_FTPBOUNCE].url = "/rules/ftp-keywords.html#ftpbounce"; sigmatch_table[DETECT_FTPBOUNCE].flags = SIGMATCH_NOOPT; - g_ftp_request_list_id = DetectBufferTypeRegister("ftp_request"); - - DetectAppLayerInspectEngineRegister( - "ftp_request", ALPROTO_FTP, SIG_FLAG_TOSERVER, 0, DetectEngineInspectGenericList, NULL); + g_ftp_request_list_id = DetectBufferTypeGetByName("ftp:request_complete:generic"); } /**