diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-20 01:54:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-20 01:54:27 +0000 |
commit | 3cab99ea754a62eba4d004d2ce76c7f054a43e0e (patch) | |
tree | 7950d60f4d6b611899218078d3eb705f54e0eb3e /file.c | |
parent | b06e01ece1d409c4472b0cd9ea83d53e014abc95 (diff) | |
download | wireshark-3cab99ea754a62eba4d004d2ce76c7f054a43e0e.tar.gz wireshark-3cab99ea754a62eba4d004d2ce76c7f054a43e0e.tar.bz2 wireshark-3cab99ea754a62eba4d004d2ce76c7f054a43e0e.zip |
Don't prime the display filter unless we're re-applying it; otherwise,
we aren't building a protocol tree, and we can't prime the filter
against the tree.
svn path=/trunk/; revision=5206
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.267 2002/03/31 20:56:59 guy Exp $ + * $Id: file.c,v 1.268 2002/04/20 01:54:27 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -654,7 +654,7 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, /* Dissect the frame. */ edt = epan_dissect_new(create_proto_tree, FALSE); - if (cf->dfcode) { + if (cf->dfcode != NULL && refilter) { epan_dissect_prime_dfilter(edt, cf->dfcode); } if (filter_list) { |