summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-14 21:10:49 +0000
committerJeremy Allison <jra@samba.org>1998-05-14 21:10:49 +0000
commitf8a4273407f2983bb05a76e914d4f532bbd5004e (patch)
tree5a6eb4e2394e08ba36873bed8f7e1790e395f316 /source3/rpc_parse
parent109654575b3c68db3c5cea4e7701ada622f3f8cb (diff)
downloadsamba-f8a4273407f2983bb05a76e914d4f532bbd5004e.tar.gz
samba-f8a4273407f2983bb05a76e914d4f532bbd5004e.tar.bz2
samba-f8a4273407f2983bb05a76e914d4f532bbd5004e.zip
passdb.c
server.c: Moved generate_machine_sid() into passdb.c for Jean-Francois (who might want an LDAP version). Changed locking to free exclusive lock as soon as possible to prevent contention. lib/rpc/parse/parse_samr.c lib/rpc/server/srv_samr.c: Changed last SID-as-string manipulation function to use DOM_SID structure. Jeremy. (This used to be commit 3b8f5aef57b4f37265c0403385053085f0df6f18)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_samr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index 09c47ab25a..a85b6a692d 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -204,11 +204,11 @@ void samr_io_q_unknown_3(char *desc, SAMR_Q_UNKNOWN_3 *q_u, prs_struct *ps, int
calculate length by adding up the size of the components.
********************************************************************/
-void make_dom_sid3(DOM_SID3 *sid3, uint16 unk_0, uint16 unk_1, char *sidstr)
+void make_dom_sid3(DOM_SID3 *sid3, uint16 unk_0, uint16 unk_1, DOM_SID *sid)
{
if (sid3 == NULL) return;
- string_to_sid(&(sid3->sid), sidstr);
+ sid3->sid = *sid;
sid3->len = 2 + 8 + sid3->sid.num_auths * 4;
}