summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-smb.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-08-06 03:43:42 +0000
committerGerald Combs <gerald@wireshark.org>2005-08-06 03:43:42 +0000
commitb992c7339116ada28b7021349a6dbea9f023ded0 (patch)
treed34048dd20602ebb2a1ccafb954bec0bfe7c2e4a /epan/dissectors/packet-smb.c
parent312c524a4cb9cfc7884ed2b06aa8806a686d10a7 (diff)
downloadwireshark-b992c7339116ada28b7021349a6dbea9f023ded0.tar.gz
In packet-frame.c, don't free static memory when we throw a
DissectorError. In packet-kerberos.c, restore pinfo->private_data if we throw an exception, which keeps the SMB dissector from throwing a DissectorError. Initialize variables in other places to squelch valgrind warnings. svn path=/trunk/; revision=15235
Diffstat (limited to 'epan/dissectors/packet-smb.c')
-rw-r--r--epan/dissectors/packet-smb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c
index e8ac736a1d..fd396b9475 100644
--- a/epan/dissectors/packet-smb.c
+++ b/epan/dissectors/packet-smb.c
@@ -14762,7 +14762,7 @@ dissect_smb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
nstime_t ns;
si_counter++;
- if(si_counter==20){
+ if(si_counter>=20){
si_counter=0;
}
si=&si_arr[si_counter];
@@ -14838,6 +14838,7 @@ dissect_smb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
si->ct->tid_service=g_hash_table_new(
smb_saved_info_hash_unmatched,
smb_saved_info_equal_unmatched);
+ si->ct->raw_ntlmssp = 0;
conversation_add_proto_data(conversation, proto_smb, si->ct);
}