summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-03 01:55:44 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-03 01:55:44 +0000
commita7588f21c24dac833f098c48e2337c100cf75ba4 (patch)
treec62f8c8b449e275c3e0de93bf9550ced510a5d45
parentcfc03b9257feeec1ae4b4cbf19d5ddcdabade133 (diff)
downloadsamba-a7588f21c24dac833f098c48e2337c100cf75ba4.tar.gz
samba-a7588f21c24dac833f098c48e2337c100cf75ba4.tar.xz
samba-a7588f21c24dac833f098c48e2337c100cf75ba4.zip
fixed a bug where we were truncating the returned names in a netbios
name status query to 14 bytes, so we could not join a DC who had a netbios name of 15 bytes in length.
-rw-r--r--source/libsmb/namequery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c
index ae58c3a0629..141581e2617 100644
--- a/source/libsmb/namequery.c
+++ b/source/libsmb/namequery.c
@@ -196,7 +196,7 @@ BOOL name_status_find(const char *q_name, int q_type, int type, struct in_addr t
if (i == count)
goto done;
- pull_ascii(name, status[i].name, 15, -1, STR_TERMINATE);
+ pull_ascii(name, status[i].name, 16, 15, STR_TERMINATE);
result = True;
done: