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{ %init{
fid=0; fid = 0;
%} %}
function set_file_id(fid_in: uint64): bool function set_file_id(fid_in: uint64): bool

View file

@ -14,9 +14,7 @@ refine connection DCE_RPC_Conn += {
%} %}
%cleanup{ %cleanup{
if ( gssapi )
delete gssapi; delete gssapi;
if ( ntlm )
delete 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); TCP_SupportAnalyzer::DeliverStream(len, data, orig);
if (!CheckResync(len, data, orig)) if ( ! CheckResync(len, data, orig))
return; // Not in sync yet. Still resyncing return; // Not in sync yet. Still resyncing
while ( len > 0 ) while ( len > 0 )
@ -172,7 +172,7 @@ void Contents_SMB::DeliverStream(int len, const u_char* data, bool orig)
msg_type = data[0]; msg_type = data[0];
for ( int i = 1; i < 4; i++) for ( int i = 1; i < 4; i++)
msg_len = (msg_len << 8) + data[i]; msg_len = (msg_len << 8) + data[i];
msg_len+=4; msg_len += 4;
msg_buf.Init(SMB_MAX_LEN+4, msg_len); msg_buf.Init(SMB_MAX_LEN+4, msg_len);
state = WAIT_FOR_DATA; 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 += { refine connection SMB_Conn += {
function proc_smb1_open_andx_request(h: SMB_Header, val: SMB1_open_andx_request): bool 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 function proc_smb2_write_response(h: SMB2_Header, val: SMB2_write_response) : bool
%{ %{
return true; return true;
%} %}

View file

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