diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-07-30 13:38:51 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-07-30 13:38:51 +0000 |
commit | 4efded1f504f9e930dd3846758b3aeb78ad603c5 (patch) | |
tree | 0b0572d9bf8e421cbc2ecd9d347c1a9c963c3a4a | |
parent | b1aba30a79ee12d0438600fa62ea45ab5b1e8a60 (diff) | |
download | wireshark-4efded1f504f9e930dd3846758b3aeb78ad603c5.tar.gz |
Fix Coverity CID 712343: Wrong sizeof argument.
svn path=/trunk/; revision=44136
-rw-r--r-- | asn1/rrc/rrc.cnf | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-rrc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/asn1/rrc/rrc.cnf b/asn1/rrc/rrc.cnf index f382b50f63..579bef2890 100644 --- a/asn1/rrc/rrc.cnf +++ b/asn1/rrc/rrc.cnf @@ -683,7 +683,7 @@ HNBName TYPE=FT_STRING DISPLAY=BASE_NONE /*If it doesnt exists, insert it*/ if( (cur_val=g_tree_lookup(hsdsch_muxed_flows, GINT_TO_POINTER((gint)hr))) == NULL ){ - flowd_p = (guint*)g_malloc0(sizeof(gint*)); + flowd_p = (guint*)g_malloc0(sizeof(gint)); *flowd_p = (1<<flowd); /*Set the bit to mark it as true*/ g_tree_insert(hsdsch_muxed_flows, GINT_TO_POINTER((gint)hr), flowd_p); diff --git a/epan/dissectors/packet-rrc.c b/epan/dissectors/packet-rrc.c index 4dea75bf06..5e412925ed 100644 --- a/epan/dissectors/packet-rrc.c +++ b/epan/dissectors/packet-rrc.c @@ -38378,7 +38378,7 @@ dissect_rrc_DL_TransportChannelType_r5(tvbuff_t *tvb _U_, int offset _U_, asn1_c /*If it doesnt exists, insert it*/ if( (cur_val=g_tree_lookup(hsdsch_muxed_flows, GINT_TO_POINTER((gint)hr))) == NULL ){ - flowd_p = (guint*)g_malloc0(sizeof(gint*)); + flowd_p = (guint*)g_malloc0(sizeof(gint)); *flowd_p = (1<<flowd); /*Set the bit to mark it as true*/ g_tree_insert(hsdsch_muxed_flows, GINT_TO_POINTER((gint)hr), flowd_p); |