aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nbns.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-06 02:42:50 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-06 02:42:50 +0000
commit7e0664f00a8df9f03734db434a04858801c967c3 (patch)
treecb87ad08419b5d751528cf7c90ef3e11e285d2b1 /packet-nbns.c
parent5e7f6fbdb9c14d54765efa81d135ca4be404c07a (diff)
The error code in an NBDS error packet is 1 byte, not 2.
svn path=/trunk/; revision=9570
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;
}