summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-smb.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-smb.c')
-rw-r--r--epan/dissectors/packet-smb.c8
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;