summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-13 19:42:13 +0100
committerGünther Deschner <gd@samba.org>2008-11-13 20:49:38 +0100
commite76e77c32d8fe999604939d43589b8f441daed43 (patch)
tree8ec0716726b4f02ba594d4480a38b19e4a26d0eb /source3/rpc_server
parentb0107f74a24ca9387f28968bbd21f3da3316e59f (diff)
downloadsamba-e76e77c32d8fe999604939d43589b8f441daed43.tar.gz
samba-e76e77c32d8fe999604939d43589b8f441daed43.tar.bz2
samba-e76e77c32d8fe999604939d43589b8f441daed43.zip
s3-svctl-server: fix remote rpc service management (bug #5888).
Don't TALLOC_FREE a non-talloced [ref] pointer. Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c
index cb6657400f..4beab6488b 100644
--- a/source3/rpc_server/srv_svcctl_nt.c
+++ b/source3/rpc_server/srv_svcctl_nt.c
@@ -690,7 +690,7 @@ WERROR _svcctl_QueryServiceConfigW(pipes_struct *p,
*r->out.bytes_needed = (buffer_size > r->in.buf_size) ? buffer_size : r->in.buf_size;
if (buffer_size > r->in.buf_size ) {
- TALLOC_FREE(r->out.query);
+ ZERO_STRUCTP(r->out.query);
return WERR_INSUFFICIENT_BUFFER;
}