diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-27 03:49:35 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-27 03:49:35 +0000 |
commit | 3a995d705ad5cd6fbecd2b9f7917a339b80609f1 (patch) | |
tree | 5d70e7fb639b0e90b1696bd7839cd2ba6dc25ca4 /packet-bvlc.c | |
parent | 4d6578de4c9de44d7f84467c444bdeb2daf8e7ee (diff) |
From David Richards: don't stuff the packet length into a guint8, as it
can be bigger than 255.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9877 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-bvlc.c')
-rw-r--r-- | packet-bvlc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-bvlc.c b/packet-bvlc.c index e48943d8d0..254188bca1 100644 --- a/packet-bvlc.c +++ b/packet-bvlc.c @@ -2,7 +2,7 @@ * Routines for BACnet/IP (BVLL, BVLC) dissection * Copyright 2001, Hartmut Mueller <hartmut@abmlinux.org>, FH Dortmund * - * $Id: packet-bvlc.c,v 1.13 2002/08/28 21:00:08 jmayer Exp $ + * $Id: packet-bvlc.c,v 1.14 2004/01/27 03:49:35 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -106,7 +106,7 @@ dissect_bvlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint8 bvlc_function; guint16 bvlc_length; guint16 packet_length; - guint8 npdu_length; + guint npdu_length; guint16 bvlc_result; tvbuff_t *next_tvb; @@ -275,7 +275,7 @@ dissect_bvlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) next_tvb = tvb_new_subset(tvb,bvlc_length,-1,npdu_length); /* Code from Guy Harris */ if (!dissector_try_port(bvlc_dissector_table, - bvlc_function, next_tvb, pinfo, tree)) { + bvlc_function, next_tvb, pinfo, tree)) { /* Unknown function - dissect the paylod as data */ call_dissector(data_handle,next_tvb, pinfo, tree); } |