From 807cadc059cecb8223877b3d32aec21157635610 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 30 Sep 2000 05:46:27 +0000 Subject: [PATCH] Don't put any "\r" and/or "\n" at the end of an RTSP request or reply into the "Info" column. svn path=/trunk/; revision=2470 --- packet-rtsp.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packet-rtsp.c b/packet-rtsp.c index 46e7960f2a..257c4c3207 100644 --- a/packet-rtsp.c +++ b/packet-rtsp.c @@ -4,7 +4,7 @@ * Jason Lango * Liberally copied from packet-http.c, by Guy Harris * - * $Id: packet-rtsp.c,v 1.18 2000/09/11 16:16:03 gram Exp $ + * $Id: packet-rtsp.c,v 1.19 2000/09/30 05:46:27 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -172,9 +172,10 @@ static void dissect_rtsp(const u_char *pd, int offset, frame_data *fd, lineend = find_line_end(data, dataend, &eol); linelen = lineend - data; if (process_rtsp_request_or_reply(data, offset, linelen, - rtsp_tree)) - col_add_str(fd, COL_INFO, format_text(data, linelen)); - else + rtsp_tree)) { + col_add_str(fd, COL_INFO, + format_text(data, eol - data)); + } else col_add_str(fd, COL_INFO, "Continuation"); }