From bcf51e813132b628898705e09c0e3992876aaec1 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Thu, 10 Oct 2013 14:53:19 +0000 Subject: Fix the core dump reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9258 : After calling wtap_close(), set the wth to NULL so we don't try to close it again later. (The core only happens when tshark isn't keeping up with dumpcap's file rotation.) Wireshark still has a problem but it's a different one. svn path=/trunk/; revision=52493 --- tshark.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tshark.c') diff --git a/tshark.c b/tshark.c index ba73d1a70e..961c8abcbf 100644 --- a/tshark.c +++ b/tshark.c @@ -2503,6 +2503,7 @@ capture_input_new_file(capture_session *cap_session, gchar *new_file) if ( ((capture_file *) cap_session->cf)->state != FILE_CLOSED) { if ( ((capture_file *) cap_session->cf)->wth != NULL) { wtap_close(((capture_file *) cap_session->cf)->wth); + ((capture_file *) cap_session->cf)->wth = NULL; } ((capture_file *) cap_session->cf)->state = FILE_CLOSED; } -- cgit v1.2.1