aboutsummaryrefslogtreecommitdiffstats
path: root/dfilter.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-09-29 14:41:34 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-09-29 14:41:34 +0000
commit901754eb9b6dd43fd8f0aff5ceca65ef8dad2aeb (patch)
tree863a388928e53b3a1647849fbc493c4ac26fbba4 /dfilter.c
parent2ba5608a0b7873e0b21ef02f34e8220cfdf5d2fd (diff)
Added and extended Santeri Paavolainen's <santtu@ssh.fi> patch
to avoid applying NULL dfilters while setting colorization dfilters during an ongoing, screen-updating, capture. svn path=/trunk/; revision=734
Diffstat (limited to 'dfilter.c')
-rw-r--r--dfilter.c4
1 files changed, 3 insertions, 1 deletions
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 <gerald@zing.org>
@@ -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;
}