diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-11 06:47:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-11 06:47:07 +0000 |
commit | 6e527b707fd039a5876b2e8c0e21e0016c9e7434 (patch) | |
tree | 9a836a3308591870dd0affc1f928fd80a0d81555 | |
parent | 62b3490af4f243e2daa72dd864836fe1f902ce55 (diff) |
Fix the test for the first 10 bytes of a NetBIOS name being all zeroes.
svn path=/trunk/; revision=2607
-rw-r--r-- | packet-netbios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-netbios.c b/packet-netbios.c index bdbc4887ca..45ccf6575b 100644 --- a/packet-netbios.c +++ b/packet-netbios.c @@ -5,7 +5,7 @@ * * derived from the packet-nbns.c * - * $Id: packet-netbios.c,v 1.23 2000/11/10 15:44:11 gram Exp $ + * $Id: packet-netbios.c,v 1.24 2000/11/11 06:47:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -616,7 +616,7 @@ static void dissect_netb_datagram( tvbuff_t *tvb, int offset, proto_tree *tree) /* Weird. In some datagrams, this is 10 octets of 0, followed by a MAC address.... */ - if (memcmp( tvb_get_ptr( tvb,offset + NB_SENDER_NAME + 10, 6), zeroes, 10) == 0) { + if (memcmp( tvb_get_ptr( tvb,offset + NB_SENDER_NAME, 10), zeroes, 10) == 0) { proto_tree_add_text( tree, tvb, offset + NB_SENDER_NAME + 10, 6, "Sender's MAC Address: %s", ether_to_str( tvb_get_ptr( tvb,offset + NB_SENDER_NAME + 10, 6))); |