From 3f75d21f398b940df69525d38105fa2ae4a974d4 Mon Sep 17 00:00:00 2001 From: gram Date: Wed, 29 Sep 1999 14:41:34 +0000 Subject: Added and extended Santeri Paavolainen's patch to avoid applying NULL dfilters while setting colorization dfilters during an ongoing, screen-updating, capture. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@734 f5534014-38df-0310-8fa8-9805f1628bb7 --- dfilter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dfilter.c') diff --git a/dfilter.c b/dfilter.c index 916bf849c8..2c115f0b53 100644 --- a/dfilter.c +++ b/dfilter.c @@ -1,7 +1,7 @@ /* dfilter.c * Routines for display filters * - * $Id: dfilter.c,v 1.19 1999/08/30 16:01:42 gram Exp $ + * $Id: dfilter.c,v 1.20 1999/09/29 14:41:33 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -329,6 +329,8 @@ gboolean dfilter_apply(dfilter *dfcode, proto_tree *ptree, const guint8* pd) { gboolean retval; + if (dfcode == NULL) + return FALSE; retval = dfilter_apply_node(dfcode->dftree, ptree, pd); return retval; } -- cgit v1.2.3