aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtsp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-21 07:43:53 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-21 07:43:53 +0000
commit9acdd80d4c4ef7bdd742b9e88192177695158063 (patch)
tree4cf07236cd60dbfbf73cd8764ca65af67d84c096 /packet-rtsp.c
parent55900bbe9c48b62a7960139656cd539209421554 (diff)
downloadwireshark-9acdd80d4c4ef7bdd742b9e88192177695158063.tar.gz
wireshark-9acdd80d4c4ef7bdd742b9e88192177695158063.tar.bz2
wireshark-9acdd80d4c4ef7bdd742b9e88192177695158063.zip
We have to look at RTSP packets regardless of whether we're generating a
protocol tree or not, so that, on the first pass through the capture, we see the SETUP requests that specify the ports to be used, and thus know what the conversations for RTCP and RTP are. svn path=/trunk/; revision=1887
Diffstat (limited to 'packet-rtsp.c')
-rw-r--r--packet-rtsp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/packet-rtsp.c b/packet-rtsp.c
index d0f67d28d1..4acf052101 100644
--- a/packet-rtsp.c
+++ b/packet-rtsp.c
@@ -4,7 +4,7 @@
* Jason Lango <jal@netapp.com>
* Liberally copied from packet-http.c, by Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-rtsp.c,v 1.11 2000/04/21 01:52:35 guy Exp $
+ * $Id: packet-rtsp.c,v 1.12 2000/04/21 07:43:53 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -175,9 +175,6 @@ static void dissect_rtsp(const u_char *pd, int offset, frame_data *fd,
col_add_str(fd, COL_INFO, "Continuation");
}
- if (!rtsp_tree)
- return;
-
if (offset >= end_offset)
goto bad_len;
while (data < dataend) {
@@ -265,8 +262,10 @@ static void dissect_rtsp(const u_char *pd, int offset, frame_data *fd,
/*
* Put this line.
*/
- proto_tree_add_text(rtsp_tree, offset, linelen, "%s",
- format_text(data, linelen));
+ if (rtsp_tree) {
+ proto_tree_add_text(rtsp_tree, offset, linelen, "%s",
+ format_text(data, linelen));
+ }
if (linelen > strlen(rtsp_transport) &&
strncasecmp(data, rtsp_transport,
strlen(rtsp_transport)) == 0)