diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-01-25 18:24:14 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-01-25 18:24:14 +0000 |
commit | fa8d45f2a35c01c73e1ecf36c7cd008f41b08d11 (patch) | |
tree | 1c69ba88b4ae4add59d6195ba041a8c4ea3f5639 /epan/dissectors/packet-rlc-lte.c | |
parent | 9ea266105e0241250d072987b7d36520181bc443 (diff) |
From Didier Gautheron via bug 4420:
Call p_add_proto_data only once.
svn path=/trunk/; revision=31664
Diffstat (limited to 'epan/dissectors/packet-rlc-lte.c')
-rw-r--r-- | epan/dissectors/packet-rlc-lte.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rlc-lte.c b/epan/dissectors/packet-rlc-lte.c index 1184f8aff9..51180858db 100644 --- a/epan/dissectors/packet-rlc-lte.c +++ b/epan/dissectors/packet-rlc-lte.c @@ -363,6 +363,8 @@ static void show_AM_PDU_in_tree(packet_info *pinfo, proto_tree *tree, tvbuff_t * p_pdcp_lte_info = p_get_proto_data(pinfo->fd, proto_pdcp_lte); if (p_pdcp_lte_info == NULL) { p_pdcp_lte_info = se_alloc0(sizeof(struct pdcp_lte_info)); + /* Store info in packet */ + p_add_proto_data(pinfo->fd, proto_pdcp_lte, p_pdcp_lte_info); } p_pdcp_lte_info->channelType = Channel_DCCH; @@ -372,8 +374,6 @@ static void show_AM_PDU_in_tree(packet_info *pinfo, proto_tree *tree, tvbuff_t * p_pdcp_lte_info->rohc_compression = FALSE; - /* Store info in packet */ - p_add_proto_data(pinfo->fd, proto_pdcp_lte, p_pdcp_lte_info); /* Get dissector handle */ protocol_handle = find_dissector("pdcp-lte"); |