diff options
author | Gerald Carter <jerry@samba.org> | 2005-01-15 02:20:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:53 -0500 |
commit | c727866172b5abb1cab0913eb78f3f1d58fcb9aa (patch) | |
tree | e590044485bc3bcbd732e47dcdcd40fa28b90cd4 /source3/rpc_parse | |
parent | 2c33c41b0c98ee36f5c9b6a368deb1192360fd5b (diff) | |
download | samba-c727866172b5abb1cab0913eb78f3f1d58fcb9aa.tar.gz samba-c727866172b5abb1cab0913eb78f3f1d58fcb9aa.tar.bz2 samba-c727866172b5abb1cab0913eb78f3f1d58fcb9aa.zip |
r4742: add server support for lsa_add/remove_account_rights() and fix some parsing bugs related to that code
(This used to be commit 7bf1312287cc1ec6b97917ba25fc60d6db09f26c)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_lsa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c index 20ccc39ce0..a4a3917d2e 100644 --- a/source3/rpc_parse/parse_lsa.c +++ b/source3/rpc_parse/parse_lsa.c @@ -2359,7 +2359,7 @@ void init_q_add_acct_rights(LSA_Q_ADD_ACCT_RIGHTS *q_q, q_q->pol = *hnd; init_dom_sid2(&q_q->sid, sid); init_unistr2_array(&q_q->rights, count, rights); - q_q->count = 5; + q_q->count = count; } @@ -2377,7 +2377,7 @@ BOOL lsa_io_q_add_acct_rights(const char *desc, LSA_Q_ADD_ACCT_RIGHTS *q_q, prs_ if(!smb_io_dom_sid2("sid", &q_q->sid, ps, depth)) return False; - if(!prs_uint32("count", ps, depth, &q_q->rights.count)) + if(!prs_uint32("count", ps, depth, &q_q->count)) return False; if(!smb_io_unistr2_array("rights", &q_q->rights, ps, depth)) @@ -2417,7 +2417,7 @@ void init_q_remove_acct_rights(LSA_Q_REMOVE_ACCT_RIGHTS *q_q, init_dom_sid2(&q_q->sid, sid); q_q->removeall = removeall; init_unistr2_array(&q_q->rights, count, rights); - q_q->count = 5; + q_q->count = count; } @@ -2438,7 +2438,7 @@ BOOL lsa_io_q_remove_acct_rights(const char *desc, LSA_Q_REMOVE_ACCT_RIGHTS *q_q if(!prs_uint32("removeall", ps, depth, &q_q->removeall)) return False; - if(!prs_uint32("count", ps, depth, &q_q->rights.count)) + if(!prs_uint32("count", ps, depth, &q_q->count)) return False; if(!smb_io_unistr2_array("rights", &q_q->rights, ps, depth)) |