aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nbns.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-01-06 02:42:50 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-01-06 02:42:50 +0000
commitb9316bf2ad1d932ceb02d57c1b19b9faa7e27b41 (patch)
treecb87ad08419b5d751528cf7c90ef3e11e285d2b1 /packet-nbns.c
parent701f8630ffd9dd68feb3082305c344ba5797883f (diff)
The error code in an NBDS error packet is 1 byte, not 2.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9570 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-nbns.c')
-rw-r--r--packet-nbns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-nbns.c b/packet-nbns.c
index 6c624fd74e..39ef694a19 100644
--- a/packet-nbns.c
+++ b/packet-nbns.c
@@ -3,7 +3,7 @@
* to when it had only NBNS)
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-nbns.c,v 1.81 2004/01/05 19:31:44 ulfl Exp $
+ * $Id: packet-nbns.c,v 1.82 2004/01/06 02:42:50 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1197,7 +1197,7 @@ dissect_nbdgm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
break;
case NBDS_ERROR:
- header.error_code = (guint8) tvb_get_ntohs(tvb, offset+10);
+ header.error_code = tvb_get_guint8(tvb, offset+10);
break;
}