aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal.c
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>1999-03-23 20:25:50 +0000
committerLaurent Deniel <laurent.deniel@free.fr>1999-03-23 20:25:50 +0000
commit210d3865329d9a8ddfd0286aa86bbeef7c6333fb (patch)
treece128627d0709569356b166701630d4cc15c295d /ethereal.c
parent6cbabed4c24c5a2132b5e0f9debf35527d260887 (diff)
Fixes to the TCP reassembly code to correctly handle too short
caplen or incomplete data (avoid crashes or erroneous display). svn path=/trunk/; revision=227
Diffstat (limited to 'ethereal.c')
-rw-r--r--ethereal.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ethereal.c b/ethereal.c
index 885a204b7b..bc957cd4d8 100644
--- a/ethereal.c
+++ b/ethereal.c
@@ -1,6 +1,6 @@
/* ethereal.c
*
- * $Id: ethereal.c,v 1.25 1999/03/23 03:14:33 gram Exp $
+ * $Id: ethereal.c,v 1.26 1999/03/23 20:25:50 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -191,7 +191,13 @@ follow_stream_cb( GtkWidget *w, gpointer data ) {
NULL, "WM destroy" );
gtk_signal_connect( GTK_OBJECT(streamwindow), "destroy",
NULL, "WM destroy" );
- gtk_window_set_title( GTK_WINDOW(streamwindow), "Contents of TCP stream" );
+ if( incomplete_tcp_stream ) {
+ gtk_window_set_title( GTK_WINDOW(streamwindow),
+ "Contents of TCP stream (incomplete)" );
+ } else {
+ gtk_window_set_title( GTK_WINDOW(streamwindow),
+ "Contents of TCP stream" );
+ }
gtk_widget_set_usize( GTK_WIDGET(streamwindow), DEF_WIDTH, DEF_HEIGHT );
gtk_container_border_width( GTK_CONTAINER(streamwindow), 2 );
/* setup the container */