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-ucp.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-ucp.c')
-rw-r--r-- | packet-ucp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packet-ucp.c b/packet-ucp.c index c6b7f13d09..ff5b9ed448 100644 --- a/packet-ucp.c +++ b/packet-ucp.c @@ -2,7 +2,7 @@ * Routines for Universal Computer Protocol dissection * Copyright 2001, Tom Uijldert <tom.uijldert@cmg.nl> * - * $Id: packet-ucp.c,v 1.8 2001/12/10 00:25:40 guy Exp $ + * $Id: packet-ucp.c,v 1.9 2001/12/17 23:17:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1538,9 +1538,6 @@ dissect_ucp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint8 O_R; /* Request or response */ - if (!proto_is_protocol_enabled(proto_ucp)) - return FALSE; /* UCP was disabled */ - /* This runs atop TCP, so we are guaranteed that there is at least one byte in the tvbuff. */ if (tvb_get_guint8(tvb, 0) != UCP_STX) |