From 8b9f2abfcb956f3ad496cefcc9d8ced8eadf1470 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 9 Apr 2009 15:08:29 +0200 Subject: s3-svcctl: Fix invalid buffer memset in _svcctl_QueryServiceObjectSecurity(). Found by torture-test. Guenther --- source3/rpc_server/srv_svcctl_nt.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source3/rpc_server') 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; } -- cgit