Minor cleanup.

This commit is contained in:
Robin Sommer 2016-07-07 11:55:57 -07:00
parent 781fdfa5ba
commit ad4263a98d
39 changed files with 102 additions and 105 deletions

View file

@ -6,7 +6,7 @@ refine connection DCE_RPC_Conn += {
%}
%init{
fid=0;
fid = 0;
%}
function set_file_id(fid_in: uint64): bool

View file

@ -14,9 +14,7 @@ refine connection DCE_RPC_Conn += {
%}
%cleanup{
if ( gssapi )
delete gssapi;
if ( ntlm )
delete ntlm;
%}

View file

@ -0,0 +1 @@
# Empty.

View file

@ -159,7 +159,7 @@ void Contents_SMB::DeliverStream(int len, const u_char* data, bool orig)
{
TCP_SupportAnalyzer::DeliverStream(len, data, orig);
if (!CheckResync(len, data, orig))
if ( ! CheckResync(len, data, orig))
return; // Not in sync yet. Still resyncing
while ( len > 0 )
@ -172,7 +172,7 @@ void Contents_SMB::DeliverStream(int len, const u_char* data, bool orig)
msg_type = data[0];
for ( int i = 1; i < 4; i++)
msg_len = (msg_len << 8) + data[i];
msg_len+=4;
msg_len += 4;
msg_buf.Init(SMB_MAX_LEN+4, msg_len);
state = WAIT_FOR_DATA;
}

View file

@ -1,5 +1,3 @@
# Copyright (c) Broala LLC. All Rights Reserved. No use or distribution without permission.
refine connection SMB_Conn += {
function proc_smb1_open_andx_request(h: SMB_Header, val: SMB1_open_andx_request): bool

View file

@ -24,7 +24,6 @@ refine connection SMB_Conn += {
function proc_smb2_write_response(h: SMB2_Header, val: SMB2_write_response) : bool
%{
return true;
%}

View file

@ -0,0 +1 @@
# Emoty.