aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-27 00:43:31 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-27 00:43:31 +0000
commit166e39cbe52bf6d6e9075cfc5d8b348ac0fd0d79 (patch)
treeaf6904c281cecc2486f88bb73b45ffa17ab0f67c /tshark.c
parent1f1270f4c44c59ce75d8673fd0e4b27a61a31292 (diff)
Another hack to handle the one-pass case.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36880 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 528d6e801a..4310740a43 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1816,7 +1816,14 @@ main(int argc, char *argv[])
g_free(cf_name);
- cap_file_free_frames(&cfile);
+ /* XXX - hack to avoid a crash in one-pass mode, where we update
+ cfile.count but don't allocate any frame_data structures.
+ We may want to more cleanly separate the "capture file" and
+ "collection of frames" stuff, to handle cases such as TShark
+ one-pass mode where we care about the former but don't care
+ about the latter. */
+ if (cfile.ptree_root != NULL)
+ cap_file_free_frames(&cfile);
draw_tap_listeners(TRUE);
funnel_dump_all_text_windows();