aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ndmp.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-06-17 08:40:14 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-06-17 08:40:14 +0000
commit9539ad67d5c9046b316a095170a74d7bd9d1d414 (patch)
tree331263477702fdc482c8f7ad2f9e64b70d01e897 /epan/dissectors/packet-ndmp.c
parentc508326c20146aff55b6ab142a9c5a5097661d46 (diff)
allocate the correct size of buffer to store the itlq structure for scsi
we used the wrong size which caused emem to complain that the canary value had been stomped upon. another win for the canary feature. thanks gerald git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18491 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ndmp.c')
-rw-r--r--epan/dissectors/packet-ndmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ndmp.c b/epan/dissectors/packet-ndmp.c
index 250bcf0e4c..668b080596 100644
--- a/epan/dissectors/packet-ndmp.c
+++ b/epan/dissectors/packet-ndmp.c
@@ -1169,7 +1169,7 @@ dissect_execute_cdb_cdb(tvbuff_t *tvb, int offset, packet_info *pinfo,
cdb_tvb=tvb_new_subset(tvb, offset, tvb_len, tvb_rlen);
if(!ndmp_conv_data->task->itlq){
- ndmp_conv_data->task->itlq=se_alloc(sizeof(ndmp_task_data_t));
+ ndmp_conv_data->task->itlq=se_alloc(sizeof(itlq_nexus_t));
ndmp_conv_data->task->itlq->lun=0xffff;
ndmp_conv_data->task->itlq->first_exchange_frame=pinfo->fd->num;
ndmp_conv_data->task->itlq->last_exchange_frame=0;