diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2018-02-12 10:37:00 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-02-12 11:16:18 +0000 |
commit | 27b571e62f6a672804c6f8e7b0558ccfb589cf9b (patch) | |
tree | 1cd46a202e1c90efdb8247ad257509c18a2e671d /epan/dissectors/packet-nbap.c | |
parent | ae91f43155662d857b6e4e07a67c244f921e0a8b (diff) |
NBAP: copy address in pinfo->pool
They are copied in structures using pinfo lifetime. Let's use the same scope.
Bug: 14416
Change-Id: I5f8ee6fff49d63584a246936f551db1803ff9816
Reviewed-on: https://code.wireshark.org/review/25748
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-nbap.c')
-rw-r--r-- | epan/dissectors/packet-nbap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-nbap.c b/epan/dissectors/packet-nbap.c index 1bbb1bfb5c..2f2c6b000b 100644 --- a/epan/dissectors/packet-nbap.c +++ b/epan/dissectors/packet-nbap.c @@ -12648,7 +12648,7 @@ dissect_nbap_CommonMACFlow_Specific_InfoItem(tvbuff_t *tvb _U_, int offset _U_, /* Set address for collection of common entries */ common_macdflow_id = private_data_get_common_macdflow_id(actx->pinfo); - copy_address(&(nbap_common_channel_info[common_macdflow_id].crnc_address),&dst_addr); + copy_address_wmem(actx->pinfo->pool,&(nbap_common_channel_info[common_macdflow_id].crnc_address),&dst_addr); nbap_common_channel_info[common_macdflow_id].crnc_port = private_data_get_binding_id_port(actx->pinfo); @@ -19341,7 +19341,7 @@ private_data_set_binding_id_port(actx->pinfo, 0); /* Set address for collection of DDI entries */ e_dch_macdflow_id = private_data_get_e_dch_macdflow_id(actx->pinfo); - copy_address(&(nbap_edch_channel_info[e_dch_macdflow_id].crnc_address),&dst_addr); + copy_address_wmem(actx->pinfo->pool,&(nbap_edch_channel_info[e_dch_macdflow_id].crnc_address),&dst_addr); nbap_edch_channel_info[e_dch_macdflow_id].crnc_port = bindingID; @@ -24171,7 +24171,7 @@ dissect_nbap_HSDSCH_MACdFlow_Specific_InfoItem(tvbuff_t *tvb _U_, int offset _U_ /* Set address for collection of HSDSCH entries */ hsdsch_macdflow_id = private_data_get_hsdsch_macdflow_id(actx->pinfo); - copy_address(&(nbap_hsdsch_channel_info[hsdsch_macdflow_id].crnc_address),&dst_addr); + copy_address_wmem(actx->pinfo->pool,&(nbap_hsdsch_channel_info[hsdsch_macdflow_id].crnc_address),&dst_addr); nbap_hsdsch_channel_info[hsdsch_macdflow_id].crnc_port = bindingID; @@ -24613,7 +24613,7 @@ dissect_nbap_HSDSCH_MACdFlow_Specific_InfoItem_to_Modify(tvbuff_t *tvb _U_, int set_address(&dst_addr, AT_IPv4, 4, &transportLayerAddress_ipv4); /* Set address for collection of HSDSCH entries */ - copy_address(&(nbap_hsdsch_channel_info[private_data_get_hsdsch_macdflow_id(actx->pinfo)].crnc_address),&dst_addr); + copy_address_wmem(actx->pinfo->pool,&(nbap_hsdsch_channel_info[private_data_get_hsdsch_macdflow_id(actx->pinfo)].crnc_address),&dst_addr); nbap_hsdsch_channel_info[private_data_get_hsdsch_macdflow_id(actx->pinfo)].crnc_port = bindingID; @@ -29619,7 +29619,7 @@ private_data_set_binding_id_port(actx->pinfo, 0); } /* Set address for collection of DDI entries */ - copy_address(&(nbap_edch_channel_info[e_dch_macdflow_id].crnc_address),&dst_addr); + copy_address_wmem(actx->pinfo->pool,&(nbap_edch_channel_info[e_dch_macdflow_id].crnc_address),&dst_addr); nbap_edch_channel_info[e_dch_macdflow_id].crnc_port = bindingID; set_umts_fp_conv_data(conversation, umts_fp_conversation_info); |