From 08dfdefa15d6cab7e9aac5dca73615267bf92c43 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 12 Sep 2002 19:58:37 +0000 Subject: From Anand Narwani: fix an error in decoding classifier TLV's. svn path=/trunk/; revision=6286 --- plugins/docsis/packet-tlv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/docsis/packet-tlv.c b/plugins/docsis/packet-tlv.c index c8368e82ec..98727638ea 100644 --- a/plugins/docsis/packet-tlv.c +++ b/plugins/docsis/packet-tlv.c @@ -2,7 +2,7 @@ * Routines to Dissect Appendix C TLV's * Copyright 2002, Anand V. Narwani * - * $Id: packet-tlv.c,v 1.7 2002/09/10 19:07:39 guy Exp $ + * $Id: packet-tlv.c,v 1.8 2002/09/12 19:58:37 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -1102,10 +1102,10 @@ dissect_clsfr_err (tvbuff_t * tvb, proto_tree * tree, guint16 start, switch (type) { case CFR_ERR_PARAM: - if (len == 1) + if (length == 1) proto_tree_add_item (err_tree, hf_docsis_tlv_clsfr_err_param, tvb, pos, length, FALSE); - else if (len == 2) + else if (length == 2) { proto_tree_add_item (err_tree, hf_docsis_tlv_clsfr_err_param, tvb, pos, 1, FALSE); @@ -2381,7 +2381,7 @@ proto_register_docsis_tlv (void) }, {&hf_docsis_tlv_clsfr_err_code, {"..2 Error Code", "docsis.tlv.clsfr.err.code", - FT_UINT8, BASE_DEC, NULL, 0x0, + FT_UINT8, BASE_DEC, VALS(docsis_conf_code), 0x0, "TCP/UDP Destination Port End", HFILL} }, {&hf_docsis_tlv_clsfr_err_msg, -- cgit v1.2.3