diff options
author | Günther Deschner <gd@samba.org> | 2009-04-09 13:27:08 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-09 14:51:21 +0200 |
commit | acd7fef984cba906163b7114a087ca3904e47566 (patch) | |
tree | fce7e095ad361159c2ea3d764ed040c5c0a678ec | |
parent | 0ee3c433c84cd740960216535f181b59bedbd374 (diff) | |
download | samba-acd7fef984cba906163b7114a087ca3904e47566.tar.gz samba-acd7fef984cba906163b7114a087ca3904e47566.tar.bz2 samba-acd7fef984cba906163b7114a087ca3904e47566.zip |
s3-svcctl: Fix _svcctl_Set/GetServiceObjectSecurity after IDL changes.
Guenther
-rw-r--r-- | source3/rpc_server/srv_svcctl_nt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c index 1850dcb612..8ed308ad6b 100644 --- a/source3/rpc_server/srv_svcctl_nt.c +++ b/source3/rpc_server/srv_svcctl_nt.c @@ -872,7 +872,7 @@ WERROR _svcctl_QueryServiceObjectSecurity(pipes_struct *p, *r->out.needed = ndr_size_security_descriptor( sec_desc, NULL, 0 ); - if ( *r->out.needed > r->in.buffer_size ) { + if ( *r->out.needed > r->in.offered) { ZERO_STRUCTP( &r->out.buffer ); return WERR_INSUFFICIENT_BUFFER; } @@ -932,7 +932,8 @@ WERROR _svcctl_SetServiceObjectSecurity(pipes_struct *p, /* read the security descfriptor */ status = unmarshall_sec_desc(p->mem_ctx, - r->in.buffer, r->in.buffer_size, + r->in.buffer, + r->in.offered, &sec_desc); if (!NT_STATUS_IS_OK(status)) { return ntstatus_to_werror(status); |