diff options
author | Evan Huus <eapache@gmail.com> | 2013-03-10 22:02:07 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-03-10 22:02:07 +0000 |
commit | ee744dd8c710def93b358ab211e46d53caf68dc7 (patch) | |
tree | 09358e4cdc52124ee3958d654a960ae51207891a /epan/dissectors/packet-smb2.c | |
parent | 7d1520c217769b97bcd588b8c575fc4496b51cc5 (diff) |
Allocate zeroed memory instead of manually zeroing some of the fields. We were
missing a few anyways.
Fixes the rest of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8456
Also, add modelines.
svn path=/trunk/; revision=48236
Diffstat (limited to 'epan/dissectors/packet-smb2.c')
-rw-r--r-- | epan/dissectors/packet-smb2.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c index fd13887c2f..2446ee2829 100644 --- a/epan/dissectors/packet-smb2.c +++ b/epan/dissectors/packet-smb2.c @@ -6965,14 +6965,10 @@ dissect_smb2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolea /* no we couldnt find it, so just add it then * if was a request we are decoding */ - ssi = se_alloc(sizeof(smb2_saved_info_t)); - ssi->class = 0; - ssi->infolevel = 0; + ssi = se_alloc0(sizeof(smb2_saved_info_t)); ssi->seqnum = ssi_key.seqnum; ssi->frame_req = pinfo->fd->num; - ssi->frame_res = 0; ssi->req_time = pinfo->fd->abs_ts; - ssi->extra_info = NULL; ssi->extra_info_type = SMB2_EI_NONE; g_hash_table_insert(si->conv->unmatched, ssi, ssi); } @@ -8268,3 +8264,16 @@ proto_reg_handoff_smb2(void) ntlmssp_handle = find_dissector("ntlmssp"); heur_dissector_add("netbios", dissect_smb2_heur, proto_smb2); } + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: t + * End: + * + * vi: set shiftwidth=8 tabstop=8 noexpandtab: + * :indentSize=8:tabSize=8:noTabs=false: + */ |