aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-zbee-aps.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-22 19:16:19 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-22 19:16:19 +0000
commit2218973ad11456390abd9b25bad1679efa279c74 (patch)
tree54eb8fea4cfa0dc12275a8240763f49fba80a72b /epan/dissectors/packet-zbee-aps.c
parent2c882b2237f9d60f2c8bd4726eb8473b5606b826 (diff)
Allocate correct size of nwk_keyring.
Coverity 715. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36265 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-zbee-aps.c')
-rw-r--r--epan/dissectors/packet-zbee-aps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-zbee-aps.c b/epan/dissectors/packet-zbee-aps.c
index c12daf2603..847ba769eb 100644
--- a/epan/dissectors/packet-zbee-aps.c
+++ b/epan/dissectors/packet-zbee-aps.c
@@ -1204,7 +1204,7 @@ dissect_zbee_aps_transport_key(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
* GSLists after a capture is closed and wireshark frees seasonal memory
* with se_free_all() before calling the registered init routine.
*/
- nwk_keyring = (GSList **)g_malloc0(sizeof(GSList**));
+ nwk_keyring = (GSList **)g_malloc0(sizeof(GSList*));
g_hash_table_insert(zbee_table_nwk_keyring,
g_memdup(&nwk_hints->src_pan, sizeof(nwk_hints->src_pan)), nwk_keyring);
}