diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-17 23:17:34 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-17 23:17:34 +0000 |
commit | b12ad24dfc31354b174ef1c1baf9d5ecc0789182 (patch) | |
tree | 2f0338c8c7fb33e02467da58b1e60bfd544d2bef /packet-ucp.c | |
parent | 3704fb7631fc0f35ed58b8c6388721033dd9a4f7 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4419 f5534014-38df-0310-8fa8-9805f1628bb7
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) |