summaryrefslogtreecommitdiff
path: root/asn1/ansi_map
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-09-17 17:58:49 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-09-17 17:58:49 +0000
commit980f62477079fcd693aa648bad2c1da140c80c20 (patch)
tree907f9a794e8a261dce9e54d840ca0d860300cdc5 /asn1/ansi_map
parente2b37cf8df485ab0919805e7fde7e9647b2c69ff (diff)
downloadwireshark-980f62477079fcd693aa648bad2c1da140c80c20.tar.gz
(Again, this time for ANSI MAP) From Florent Drouin: malloc the size of the structure, not the size of a pointer to the structure. Hopefully this will fix bug 1844.
svn path=/trunk/; revision=22892
Diffstat (limited to 'asn1/ansi_map')
-rw-r--r--asn1/ansi_map/packet-ansi_map-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/ansi_map/packet-ansi_map-template.c b/asn1/ansi_map/packet-ansi_map-template.c
index d719636b04..4c0ff15227 100644
--- a/asn1/ansi_map/packet-ansi_map-template.c
+++ b/asn1/ansi_map/packet-ansi_map-template.c
@@ -447,7 +447,7 @@ update_saved_invokedata(packet_info *pinfo, proto_tree *tree _U_, tvbuff_t *tvb
if(ansi_map_saved_invokedata)
return;
- ansi_map_saved_invokedata = g_malloc(sizeof(ansi_map_saved_invokedata));
+ ansi_map_saved_invokedata = g_malloc(sizeof(struct ansi_map_invokedata_t));
ansi_map_saved_invokedata->opcode = p_private_tcap->d.OperationCode_private;
ansi_map_saved_invokedata->ServiceIndicator = ServiceIndicator;