aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2017-04-10 14:26:00 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2017-04-10 16:44:05 +0000
commitfa97a31dd4754724a53658cd26adeefb29c2b246 (patch)
treedbc3d6c82941495b75308a5a5f4404d39e4a4384 /epan/dissectors
parent82442d788facb7592ad9dec581d895adec52bfc3 (diff)
RTPproxy: use tvb_format_text() to add text to info column
Otherwise you can have put multiple lines in the info column when a packet is wrongly identified as RTPproxy (TCP connection using the default RTPproxy port for example) Bug: 13582 Change-Id: I817f67d5fc8c0d5f9d252f0f949af715bfc0ef56 Reviewed-on: https://code.wireshark.org/review/21000 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-rtpproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-rtpproxy.c b/epan/dissectors/packet-rtpproxy.c
index 466dee8fec..e1352059b5 100644
--- a/epan/dissectors/packet-rtpproxy.c
+++ b/epan/dissectors/packet-rtpproxy.c
@@ -595,7 +595,7 @@ dissect_rtpproxy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data
}
/* Get payload string */
- rawstr = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, realsize - offset, ENC_ASCII);
+ rawstr = tvb_format_text(tvb, offset, realsize - offset);
/* Extract command */
tmp = g_ascii_tolower(tvb_get_guint8(tvb, offset));