diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-17 23:17:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-17 23:17:34 +0000 |
commit | 3ba6c2e708fdf55fc8606ab072e78028ca9246ce (patch) | |
tree | 2f0338c8c7fb33e02467da58b1e60bfd544d2bef /packet-yhoo.c | |
parent | 4eb3462238c447d9249dac772e160517da82fac3 (diff) |
Get rid of calls to "proto_is_protocol_enabled()" in heuristic
dissectors - the infrastructure for calling heuristic dissectors won't
call a heuristic dissector for a protocol if the protocol isn't enabled,
so there's no need for the dissector itself to check that.
svn path=/trunk/; revision=4419
Diffstat (limited to 'packet-yhoo.c')
-rw-r--r-- | packet-yhoo.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packet-yhoo.c b/packet-yhoo.c index dacde6bd47..a421c37fdf 100644 --- a/packet-yhoo.c +++ b/packet-yhoo.c @@ -2,7 +2,7 @@ * Routines for yahoo messenger packet dissection * Copyright 1999, Nathan Neulinger <nneul@umr.edu> * - * $Id: packet-yhoo.c,v 1.19 2001/12/10 00:25:41 guy Exp $ + * $Id: packet-yhoo.c,v 1.20 2001/12/17 23:17:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -111,10 +111,6 @@ dissect_yhoo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) int offset = 0; int length = 0; - if (!proto_is_protocol_enabled(proto_yhoo)) { - return FALSE; - } - if (pinfo->srcport != TCP_PORT_YHOO && pinfo->destport != TCP_PORT_YHOO) { /* Not the Yahoo port - not a Yahoo Messenger packet. */ return FALSE; |