diff options
author | Luke Leighton <lkcl@samba.org> | 1999-08-03 20:30:25 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-08-03 20:30:25 +0000 |
commit | 8598bf2a7f0f71ae7a023aac054c4df42b969ce6 (patch) | |
tree | 53352e656e5d01de5a2711b62ac1239979f6d53f /source3/rpc_parse/parse_misc.c | |
parent | 9c593512155a4e1d9eb01ac63d4458df59b7357d (diff) | |
download | samba-8598bf2a7f0f71ae7a023aac054c4df42b969ce6.tar.gz samba-8598bf2a7f0f71ae7a023aac054c4df42b969ce6.tar.bz2 samba-8598bf2a7f0f71ae7a023aac054c4df42b969ce6.zip |
reverted jeremy's c++-like security descriptor modifications as the
simplest method to get rpcclient's reggetsec command working. the
buffers passed as arguments in do_reg_get_key_sec() do need to be
locally allocated not dynamically allocated, as two calls to
reg_get_key_sec() are needed. on the first, the server fills in the
size of the security descriptor buffer needed. on the second, the
server fills in the security descriptor buffer.
(This used to be commit b2d9cbef6f65bb696df8d8f49aa0c240e0bb1f50)
Diffstat (limited to 'source3/rpc_parse/parse_misc.c')
-rw-r--r-- | source3/rpc_parse/parse_misc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c index 4927886fc8..4bc44f2038 100644 --- a/source3/rpc_parse/parse_misc.c +++ b/source3/rpc_parse/parse_misc.c @@ -133,11 +133,11 @@ void smb_io_enum_hnd(char *desc, ENUM_HND *hnd, prs_struct *ps, int depth) /******************************************************************* reads or writes a DOM_SID structure. ********************************************************************/ -BOOL smb_io_dom_sid(char *desc, DOM_SID *sid, prs_struct *ps, int depth) +void smb_io_dom_sid(char *desc, DOM_SID *sid, prs_struct *ps, int depth) { int i; - if (sid == NULL) return False; + if (sid == NULL) return; prs_debug(ps, depth, desc, "smb_io_dom_sid"); depth++; @@ -158,8 +158,6 @@ BOOL smb_io_dom_sid(char *desc, DOM_SID *sid, prs_struct *ps, int depth) if (sid->num_auths > MAXSUBAUTHS) sid->num_auths = MAXSUBAUTHS; prs_uint32s(False, "sub_auths ", ps, depth, sid->sub_auths, sid->num_auths); - - return True; } /******************************************************************* @@ -167,7 +165,7 @@ creates a DOM_SID2 structure. ********************************************************************/ void make_dom_sid2(DOM_SID2 *sid2, DOM_SID *sid) { - sid2->sid = *sid; + sid_copy(&sid2->sid, sid); sid2->num_auths = sid2->sid.num_auths; } |