diff options
author | Gerald Carter <jerry@samba.org> | 2003-12-10 21:13:44 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-12-10 21:13:44 +0000 |
commit | ae8d35b2a2cead8a21a7c4f4bfbefa830384470e (patch) | |
tree | 8807d430c524dbe96bf642acce0f24352179ee7f /source3/rpc_server | |
parent | 87fddf6a988dfcdb3f1d3a715df585b6c6efa9d7 (diff) | |
download | samba-ae8d35b2a2cead8a21a7c4f4bfbefa830384470e.tar.gz samba-ae8d35b2a2cead8a21a7c4f4bfbefa830384470e.tar.bz2 samba-ae8d35b2a2cead8a21a7c4f4bfbefa830384470e.zip |
Fix UNISTR2 length bug in LsaQueryInfo(3) that cause SID resolution to fail on local files on on domain members; bug 875
(This used to be commit c6594e35573186966a4d57404f1c06b98670db06)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_lsa_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index e545d8c267..2b2cb91924 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -66,7 +66,7 @@ static void init_dom_query(DOM_QUERY *d_q, const char *dom_name, DOM_SID *dom_si /* this string is supposed to be non-null terminated. */ /* But the maxlen in this UNISTR2 must include the terminating null. */ - init_unistr2(&d_q->uni_domain_name, dom_name, UNI_MAXLEN_TERMINATE); + init_unistr2(&d_q->uni_domain_name, dom_name, UNI_BROKEN_NON_NULL); /* * I'm not sure why this really odd combination of length |