mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Minor cleanup.
This commit is contained in:
parent
781fdfa5ba
commit
ad4263a98d
39 changed files with 102 additions and 105 deletions
|
@ -6,7 +6,7 @@ refine connection DCE_RPC_Conn += {
|
|||
%}
|
||||
|
||||
%init{
|
||||
fid=0;
|
||||
fid = 0;
|
||||
%}
|
||||
|
||||
function set_file_id(fid_in: uint64): bool
|
||||
|
|
|
@ -14,9 +14,7 @@ refine connection DCE_RPC_Conn += {
|
|||
%}
|
||||
|
||||
%cleanup{
|
||||
if ( gssapi )
|
||||
delete gssapi;
|
||||
if ( ntlm )
|
||||
delete ntlm;
|
||||
%}
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
# Empty.
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -24,7 +24,6 @@ refine connection SMB_Conn += {
|
|||
|
||||
function proc_smb2_write_response(h: SMB2_Header, val: SMB2_write_response) : bool
|
||||
%{
|
||||
|
||||
return true;
|
||||
%}
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
# Emoty.
|
|
@ -1 +1 @@
|
|||
|
||||
# Empty.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue