s3-svcctl: Fix invalid buffer memset in _svcctl_QueryServiceObjectSecurity().
authorGünther Deschner <gd@samba.org>
Thu, 9 Apr 2009 13:08:29 +0000 (15:08 +0200)
committerGü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

index 8ed308ad6bdef6456dc691e868b8317341aca2cf..350a5ca236575f4d7fb743aaa58ecc4c7e592148 100644 (file)
@@ -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;
        }