diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 1999-03-23 20:25:50 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 1999-03-23 20:25:50 +0000 |
commit | 210d3865329d9a8ddfd0286aa86bbeef7c6333fb (patch) | |
tree | ce128627d0709569356b166701630d4cc15c295d /ethereal.c | |
parent | 6cbabed4c24c5a2132b5e0f9debf35527d260887 (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.c | 10 |
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 */ |