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
This commit is contained in:
Guy Harris 2002-04-20 01:54:27 +00:00
parent b06e01ece1
commit 3cab99ea75
1 changed files with 2 additions and 2 deletions

4
file.c
View File

@ -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) {