diff options
author | Evan Huus <evan.huus@jadedpixel.com> | 2014-06-17 21:25:14 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-06-17 21:28:29 +0000 |
commit | f4b9ea4362cd1ffdf5315a3f1311c8418a91579d (patch) | |
tree | 39089814d2499c43e2ef016da0f7559acb22780f | |
parent | 74fec385295d0594179833b62f5ee7ab31d4359c (diff) |
Initialize smb ioctl_function struct member
Bug:10020
Change-Id: I415a29dd36697887cb06485d6ed3a2b799a93464
Reviewed-on: https://code.wireshark.org/review/2342
Reviewed-by: Evan Huus <eapache@gmail.com>
-rw-r--r-- | epan/dissectors/packet-smb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c index 05fabfa236..92924204ba 100644 --- a/epan/dissectors/packet-smb.c +++ b/epan/dissectors/packet-smb.c @@ -9042,9 +9042,10 @@ dissect_nt_transaction_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr * Allocate a new smb_nt_transact_info_t * structure. */ - nti = (smb_nt_transact_info_t *)wmem_alloc(wmem_file_scope(), sizeof(smb_nt_transact_info_t)); + nti = wmem_new(wmem_file_scope(), smb_nt_transact_info_t); nti->subcmd = subcmd; nti->fid_type = SMB_FID_TYPE_UNKNOWN; + nti->ioctl_function = 0; sip->extra_info = nti; sip->extra_info_type = SMB_EI_NTI; } else { |