aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-smpp.c')
-rw-r--r--epan/dissectors/packet-smpp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-smpp.c b/epan/dissectors/packet-smpp.c
index 3c21667b5d..5d54bc16b1 100644
--- a/epan/dissectors/packet-smpp.c
+++ b/epan/dissectors/packet-smpp.c
@@ -1978,8 +1978,8 @@ submit_sm(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo,
{
DebugLog(("UDHI present - set addresses\n"));
/* Save original addresses */
- SET_ADDRESS(&save_src, pinfo->src.type, pinfo->src.len, pinfo->src.data);
- SET_ADDRESS(&save_dst, pinfo->dst.type, pinfo->dst.len, pinfo->dst.data);
+ COPY_ADDRESS_SHALLOW(&save_src, &pinfo->src);
+ COPY_ADDRESS_SHALLOW(&save_dst, &pinfo->dst);
/* Set SMPP source and destination address */
SET_ADDRESS(&(pinfo->src), AT_STRINGZ, 1+(int)strlen(src_str), src_str);
SET_ADDRESS(&(pinfo->dst), AT_STRINGZ, 1+(int)strlen(dst_str), dst_str);
@@ -1987,8 +1987,8 @@ submit_sm(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo,
MIN(length, tvb_reported_length(tvb) - offset), length);
call_dissector (gsm_sms_handle, tvb_msg, pinfo, top_tree);
/* Restore original addresses */
- SET_ADDRESS(&(pinfo->src), save_src.type, save_src.len, save_src.data );
- SET_ADDRESS(&(pinfo->dst), save_dst.type, save_dst.len, save_dst.data);
+ COPY_ADDRESS_SHALLOW(&pinfo->src, &save_src);
+ COPY_ADDRESS_SHALLOW(&pinfo->dst, &save_dst);
}
offset += length;
}