detect/filename: fix buffer description

pull/8137/head
Eric Leblond 4 years ago committed by Victor Julien
parent 82dba07579
commit ea85e2ccf2

@ -1,4 +1,4 @@
/* Copyright (C) 2007-2021 Open Information Security Foundation /* Copyright (C) 2007-2022 Open Information Security Foundation
* *
* You can copy, redistribute or modify this Program under the terms of * You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free * the GNU General Public License version 2 as published by the Free
@ -158,8 +158,7 @@ void DetectFiledataRegister(void)
DetectAppLayerInspectEngineRegister2( DetectAppLayerInspectEngineRegister2(
"file_data", ALPROTO_FTP, SIG_FLAG_TOCLIENT, 0, DetectEngineInspectFiledata, NULL); "file_data", ALPROTO_FTP, SIG_FLAG_TOCLIENT, 0, DetectEngineInspectFiledata, NULL);
DetectBufferTypeSetDescriptionByName("file_data", DetectBufferTypeSetDescriptionByName("file_data", "data from tracked files");
"http response body, smb files or smtp attachments data");
g_file_data_buffer_id = DetectBufferTypeGetByName("file_data"); g_file_data_buffer_id = DetectBufferTypeGetByName("file_data");
} }

@ -159,8 +159,7 @@ void DetectFilenameRegister(void)
0); 0);
} }
DetectBufferTypeSetDescriptionByName("file.name", DetectBufferTypeSetDescriptionByName("file.name", "file name");
"http user agent");
g_file_name_buffer_id = DetectBufferTypeGetByName("file.name"); g_file_name_buffer_id = DetectBufferTypeGetByName("file.name");
SCLogDebug("registering filename rule option"); SCLogDebug("registering filename rule option");

Loading…
Cancel
Save