diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-09-23 13:21:54 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-09-23 13:21:54 +0000 |
commit | 5c2232dc2255d442b34053c1c7d4343c1d527630 (patch) | |
tree | 3f00acffddbff2016e61041e6e648895f2213e73 /epan/dissectors/packet-smb.c | |
parent | 4c6484334cf5076c631e00feff1f993075c756de (diff) | |
download | wireshark-5c2232dc2255d442b34053c1c7d4343c1d527630.tar.gz |
replace a rotating buffer in smb with ep allocated memory
dont try dcerpc reassembly of fragments if we dont have the entire pdu
only call the heuristical dissectors once from smb/pipe as per guy(?)s comments about idempotence.
when doing reassembly, the dcerpc dissector is indeed not idempotent any more.
svn path=/trunk/; revision=19304
Diffstat (limited to 'epan/dissectors/packet-smb.c')
-rw-r--r-- | epan/dissectors/packet-smb.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c index a2634c7678..cd747dc6f7 100644 --- a/epan/dissectors/packet-smb.c +++ b/epan/dissectors/packet-smb.c @@ -15491,8 +15491,6 @@ dissect_smb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) proto_item *tmp_item=NULL; guint8 flags; guint16 flags2; - static smb_info_t si_arr[20]; - static int si_counter=0; smb_info_t *si; smb_saved_info_t *sip = NULL; smb_saved_info_key_t key; @@ -15504,11 +15502,7 @@ dissect_smb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) conversation_t *conversation; nstime_t t, deltat; - si_counter++; - if(si_counter>=20){ - si_counter=0; - } - si=&si_arr[si_counter]; + si=ep_alloc(sizeof(smb_info_t)); top_tree=parent_tree; |