summaryrefslogtreecommitdiff
path: root/packet-nbns.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-05-27 05:35:08 +0000
committerGuy Harris <guy@alum.mit.edu>1999-05-27 05:35:08 +0000
commitcf84edfcf44d438cf0a065675f7282812540496e (patch)
treec9c351f31c2e38502d49f9c51963e926e0fb0125 /packet-nbns.c
parent5f99945363948f02c0e7cf6edcf6d829d72fd9c7 (diff)
downloadwireshark-cf84edfcf44d438cf0a065675f7282812540496e.tar.gz
Correctly handle the case of the root showing up as a name in a DNS
request or reply. (Redid "get_dns_name()" along the lines of the code in the BSD resolver.) Add code to dissect SOA RRs. svn path=/trunk/; revision=297
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 1aca505c75..6daa0ebe2b 100644
--- a/packet-nbns.c
+++ b/packet-nbns.c
@@ -4,7 +4,7 @@
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
* Much stuff added by Guy Harris <guy@netapp.com>
*
- * $Id: packet-nbns.c,v 1.19 1999/05/10 22:07:09 guy Exp $
+ * $Id: packet-nbns.c,v 1.20 1999/05/27 05:35:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -185,7 +185,7 @@ get_nbns_name(const u_char *nbns_data_ptr, const u_char *pd,
char nbname[MAXDNAME+4]; /* 4 for [<last char>] */
char *pname, *pnbname, cname, cnbname;
- name_len = get_dns_name(nbns_data_ptr, pd, offset, name, sizeof(name));
+ name_len = get_dns_name(nbns_data_ptr, pd + offset, name, sizeof(name));
/* OK, now undo the first-level encoding. */
pname = &name[0];