Prevent some extra smb logging of cmd messages.

This commit is contained in:
Seth Hall 2016-03-03 16:33:29 -05:00
parent b9afc01d91
commit 462316acdf
2 changed files with 13 additions and 6 deletions

View file

@ -87,7 +87,8 @@ event smb2_negotiate_response(c: connection, hdr: SMB2::Header, response: SMB2::
event smb2_negotiate_response(c: connection, hdr: SMB2::Header, response: SMB2::NegotiateResponse) &priority=5
{
if ( c$smb_state$current_cmd$status !in SMB::ignored_command_statuses )
if ( SMB::write_cmd_log &&
c$smb_state$current_cmd$status !in SMB::ignored_command_statuses )
{
Log::write(SMB::CMD_LOG, c$smb_state$current_cmd);
}