scsi-osd: initialize the entire extra_data struct

Bug: 11337
Change-Id: If240b581c73e1cfb2aae1e85855170387677eb32
Reviewed-on: https://code.wireshark.org/review/9494
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Evan Huus 2015-07-04 12:08:08 -04:00
parent 4e0002e228
commit 6e62ad5187
1 changed files with 1 additions and 4 deletions

View File

@ -3368,11 +3368,8 @@ dissect_osd_opcode(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
if ((!pinfo->fd->flags.visited) || (!cdata->itlq->extra_data)) {
scsi_osd_extra_data_t *extra_data;
extra_data = wmem_new(wmem_file_scope(), scsi_osd_extra_data_t);
extra_data = wmem_new0(wmem_file_scope(), scsi_osd_extra_data_t);
extra_data->svcaction = svcaction;
extra_data->gsatype = 0;
extra_data->osd2 = 0;
extra_data->continuation_length = 0;
cdata->itlq->extra_data = extra_data;
}
}