From fa8d45f2a35c01c73e1ecf36c7cd008f41b08d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 25 Jan 2010 18:24:14 +0000 Subject: From Didier Gautheron via bug 4420: Call p_add_proto_data only once. svn path=/trunk/; revision=31664 --- epan/dissectors/packet-rlc-lte.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-rlc-lte.c') 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"); -- cgit v1.2.3