From 06b75181a0a7033e270eae0b8009f5628048f0b5 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Wed, 20 Jan 2016 15:15:23 +0100 Subject: Qt: fix a crash when trying to open TCP stream graph on a truncated TCP packet Do not try to show TCP stream graph window if it was rejected in constructor Change-Id: I4d1401e2c356391ceb8c8e3d37a668fc2a9fc92f Reviewed-on: https://code.wireshark.org/review/13454 Reviewed-by: Pascal Quantin Petri-Dish: Pascal Quantin Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/tap-tcp-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/tap-tcp-stream.c') diff --git a/ui/tap-tcp-stream.c b/ui/tap-tcp-stream.c index cd14076360..71840a506e 100644 --- a/ui/tap-tcp-stream.c +++ b/ui/tap-tcp-stream.c @@ -330,7 +330,7 @@ select_tcpip_session(capture_file *cf, struct segment *hdrs) * segment, as tcp_graph_selected_packet_enabled() is used * to determine whether to enable any of our menu items. */ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, - "Selected packet isn't a TCP segment"); + "Selected packet isn't a TCP segment or is truncated"); return NULL; } /* XXX fix this later, we should show a dialog allowing the user -- cgit v1.2.3