diff options
author | Gerald Carter <jerry@samba.org> | 2003-12-10 21:14:39 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-12-10 21:14:39 +0000 |
commit | 1959428a00d5b6b41e2fc741841ba16e98926b96 (patch) | |
tree | b818bd49501a1a623e76f975d32ed0da32a6c4de /source3/rpc_server | |
parent | b90d6b16e4175526c5112b9541d7d509d5a64edf (diff) | |
download | samba-1959428a00d5b6b41e2fc741841ba16e98926b96.tar.gz samba-1959428a00d5b6b41e2fc741841ba16e98926b96.tar.bz2 samba-1959428a00d5b6b41e2fc741841ba16e98926b96.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 a5c5dde1c34ba44f8d9bbb38720a089a6d61806c)
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 8785cce789..01a31dcfe5 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 |