diff options
author | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-09-29 14:41:34 +0000 |
---|---|---|
committer | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-09-29 14:41:34 +0000 |
commit | 3f75d21f398b940df69525d38105fa2ae4a974d4 (patch) | |
tree | 863a388928e53b3a1647849fbc493c4ac26fbba4 /dfilter.c | |
parent | cc2e25d6f180719aa9f57bd51e56dbef5f9c9e09 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@734 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'dfilter.c')
-rw-r--r-- | dfilter.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |