On Fri, Apr 19, 2002 at 06:35:40PM -0700, Shriram Natarajan wrote:
> I used (ethereal &) to invoke the newly built ethereal. I set up a UDP
> srcport==x || udp.dstport==y rule and captured some packets. Then I wanted
> to colorize the display and set up a similar expression there too. Then I
> wanted to remove the rule and I got this crash.
I've checked in a fix.
The attached patch is the fix that I've checked in.
Index: file.c
===================================================================
RCS file: /usr/local/cvsroot/ethereal/file.c,v
retrieving revision 1.267
diff -c -r1.267 file.c
*** file.c 31 Mar 2002 20:56:59 -0000 1.267
--- file.c 20 Apr 2002 01:53:01 -0000
***************
*** 654,660 ****
/* Dissect the frame. */
edt = epan_dissect_new(create_proto_tree, FALSE);
! if (cf->dfcode) {
epan_dissect_prime_dfilter(edt, cf->dfcode);
}
if (filter_list) {
--- 654,660 ----
/* Dissect the frame. */
edt = epan_dissect_new(create_proto_tree, FALSE);
! if (cf->dfcode != NULL && refilter) {
epan_dissect_prime_dfilter(edt, cf->dfcode);
}
if (filter_list) {