summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-09 15:08:29 +0200
committerGünther Deschner <gd@samba.org>2009-04-09 15:08:29 +0200
commit8b9f2abfcb956f3ad496cefcc9d8ced8eadf1470 (patch)
tree820158c2b43e02743fa5b3dc3bf30fc8c8306154 /source3/rpc_server
parent1632a4ebabc7414c8fd05084cd7ca83fb9233297 (diff)
downloadsamba-8b9f2abfcb956f3ad496cefcc9d8ced8eadf1470.tar.gz
samba-8b9f2abfcb956f3ad496cefcc9d8ced8eadf1470.tar.bz2
samba-8b9f2abfcb956f3ad496cefcc9d8ced8eadf1470.zip
s3-svcctl: Fix invalid buffer memset in _svcctl_QueryServiceObjectSecurity().
Found by torture-test. Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c
index 8ed308ad6b..350a5ca236 100644
--- 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;
}