diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-01-25 11:47:39 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-01-25 11:47:39 +0000 |
commit | c198fc65462567cf87c914dc7eff758f18680297 (patch) | |
tree | 03dd1faf270372972f7c1da1e0b81875d16eae54 /epan/dissectors/packet-rlc-lte.c | |
parent | 17a01968d9904dcf2d4a35568755866cec7224ca (diff) |
From Didier Gautheron via bug 4419:
se_alloc and ep_alloc never return NULL and se_alloc0 already initialized
data with 0.
svn path=/trunk/; revision=31654
Diffstat (limited to 'epan/dissectors/packet-rlc-lte.c')
-rw-r--r-- | epan/dissectors/packet-rlc-lte.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/epan/dissectors/packet-rlc-lte.c b/epan/dissectors/packet-rlc-lte.c index 3f12b9dda5..1184f8aff9 100644 --- a/epan/dissectors/packet-rlc-lte.c +++ b/epan/dissectors/packet-rlc-lte.c @@ -364,9 +364,6 @@ static void show_AM_PDU_in_tree(packet_info *pinfo, proto_tree *tree, tvbuff_t * if (p_pdcp_lte_info == NULL) { p_pdcp_lte_info = se_alloc0(sizeof(struct pdcp_lte_info)); } - if (p_pdcp_lte_info == NULL) { - return; - } p_pdcp_lte_info->channelType = Channel_DCCH; p_pdcp_lte_info->direction = rlc_info->direction; @@ -604,11 +601,6 @@ static void checkChannelSequenceInfo(packet_info *pinfo, tvbuff_t *tvb, p_channel_key = se_alloc(sizeof(rlc_channel_hash_key)); p_channel_status = se_alloc0(sizeof(rlc_channel_status)); - /* Just give up if allocations failed */ - if (!p_channel_key || !p_channel_status) { - return; - } - /* Copy key contents */ memcpy(p_channel_key, &channel_key, sizeof(rlc_channel_hash_key)); @@ -1201,9 +1193,6 @@ static gboolean dissect_rlc_lte_heur(tvbuff_t *tvb, packet_info *pinfo, if (p_rlc_lte_info == NULL) { /* Allocate new info struct for this frame */ p_rlc_lte_info = se_alloc0(sizeof(struct rlc_lte_info)); - if (p_rlc_lte_info == NULL) { - return FALSE; - } infoAlreadySet = FALSE; } else { |