git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1632a4e
)
s3-svcctl: Fix invalid buffer memset in _svcctl_QueryServiceObjectSecurity().
author
Günther Deschner
<gd@samba.org>
Thu, 9 Apr 2009 13:08:29 +0000
(15:08 +0200)
committer
Günther Deschner
<gd@samba.org>
Thu, 9 Apr 2009 13:08:29 +0000
(15:08 +0200)
Found by torture-test.
Guenther
source3/rpc_server/srv_svcctl_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_svcctl_nt.c
b/source3/rpc_server/srv_svcctl_nt.c
index 8ed308ad6bdef6456dc691e868b8317341aca2cf..350a5ca236575f4d7fb743aaa58ecc4c7e592148 100644
(file)
--- a/
source3/rpc_server/srv_svcctl_nt.c
+++ b/
source3/rpc_server/srv_svcctl_nt.c
@@
-873,7
+873,6
@@
WERROR _svcctl_QueryServiceObjectSecurity(pipes_struct *p,
*r->out.needed = ndr_size_security_descriptor( sec_desc, NULL, 0 );
if ( *r->out.needed > r->in.offered) {
- ZERO_STRUCTP( &r->out.buffer );
return WERR_INSUFFICIENT_BUFFER;
}