From ee744dd8c710def93b358ab211e46d53caf68dc7 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sun, 10 Mar 2013 22:02:07 +0000 Subject: 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 --- epan/dissectors/packet-smb2.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'epan/dissectors/packet-smb2.c') 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: + */ -- cgit v1.2.3