]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/file-data: minor cleanups and clarifications
authorVictor Julien <victor@inliniac.net>
Thu, 13 Dec 2018 09:21:41 +0000 (10:21 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 29 Jan 2019 12:27:57 +0000 (13:27 +0100)
src/detect-file-data.c

index 755a6151a2ddb15778efae68e5a06781aea9f58e..39686ec3d78b4eccbf92b9e90ea544a7bafa7e5f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2011 Open Information Security Foundation
+/* Copyright (C) 2007-2018 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -61,11 +61,9 @@ static int g_file_data_buffer_id = 0;
 void DetectFiledataRegister(void)
 {
     sigmatch_table[DETECT_FILE_DATA].name = "file_data";
-    sigmatch_table[DETECT_FILE_DATA].desc = "make content keywords match on HTTP response body";
+    sigmatch_table[DETECT_FILE_DATA].desc = "make content keywords match on file data";
     sigmatch_table[DETECT_FILE_DATA].url = DOC_URL DOC_VERSION "/rules/http-keywords.html#file-data";
-    sigmatch_table[DETECT_FILE_DATA].Match = NULL;
     sigmatch_table[DETECT_FILE_DATA].Setup = DetectFiledataSetup;
-    sigmatch_table[DETECT_FILE_DATA].Free  = NULL;
     sigmatch_table[DETECT_FILE_DATA].RegisterTests = DetectFiledataRegisterTests;
     sigmatch_table[DETECT_FILE_DATA].flags = SIGMATCH_NOOPT;
 
@@ -103,7 +101,7 @@ void DetectFiledataRegister(void)
 #endif
 
     DetectBufferTypeSetDescriptionByName("file_data",
-            "http response body or smtp attachments data");
+            "http response body, smb files or smtp attachments data");
 
     g_file_data_buffer_id = DetectBufferTypeGetByName("file_data");
 }