aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-20 01:54:27 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-20 01:54:27 +0000
commit3cab99ea754a62eba4d004d2ce76c7f054a43e0e (patch)
tree7950d60f4d6b611899218078d3eb705f54e0eb3e /file.c
parentb06e01ece1d409c4472b0cd9ea83d53e014abc95 (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 14ad2deaf6..e6927bb29a 100644
--- a/file.c
+++ b/file.c
@@ -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) {