summaryrefslogtreecommitdiff
path: root/source3/libsmb
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
commitc7597b144a633948e0fed3c5916fe5f36bb4cc99 (patch)
tree73a5ea7008d42ecf5c170d2b9f599eef9966ac90 /source3/libsmb
parent65608eb58798e9bffc4e1410101dc8975723697c (diff)
downloadsamba-c7597b144a633948e0fed3c5916fe5f36bb4cc99.tar.gz
samba-c7597b144a633948e0fed3c5916fe5f36bb4cc99.tar.bz2
samba-c7597b144a633948e0fed3c5916fe5f36bb4cc99.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. (This used to be commit a7588f21c24dac833f098c48e2337c100cf75ba4)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index ae58c3a062..141581e261 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/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: