diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-11-16 16:27:34 -0800 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-11-17 09:40:39 +0000 |
commit | 7518a74dbb32f941509a5dcabb5f74a3af14985d (patch) | |
tree | aaf4777c792f2f9f0b33e35cf21519b7eb456292 /ui/gtk/capture_file_dlg.c | |
parent | 622603b277043bca649e4a370af252bb4802181c (diff) |
Qt: Fix a merge crash.
Update the logic in ui/qt/main_window.cpp:mergeCaptureFile to match
ui/gtk/capture_file_dlg.c:file_merge_cmd. This ensures that we don't try
to use a stale (and freed) read filter.
Call cf_set_rfcode in both.
Bug: 11718
Change-Id: I6da65e428bff39e907f45992bac7337880c02ce9
Reviewed-on: https://code.wireshark.org/review/11895
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/gtk/capture_file_dlg.c')
-rw-r--r-- | ui/gtk/capture_file_dlg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/capture_file_dlg.c b/ui/gtk/capture_file_dlg.c index c93d5a6b36..e120034751 100644 --- a/ui/gtk/capture_file_dlg.c +++ b/ui/gtk/capture_file_dlg.c @@ -1005,7 +1005,7 @@ file_merge_cmd(GtkWidget *w _U_) /* Attach the new read filter to "cf" ("cf_open()" succeeded, so it closed the previous capture file, and thus destroyed any previous read filter attached to "cf"). */ - cfile.rfcode = rfcode; + cf_set_rfcode(&cfile, rfcode); switch (cf_read(&cfile, FALSE)) { |