summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-05-22 11:36:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:52 -0500
commit1ca75ec3bb5d001958d02a8d05a63c44269e57b8 (patch)
tree05c4f63e2331b3a5caa9738cc6c2699e6f5c780a /source4/lib/registry
parentc5e11daa8bb00665efabbf7939062e7e60112ced (diff)
downloadsamba-1ca75ec3bb5d001958d02a8d05a63c44269e57b8.tar.gz
samba-1ca75ec3bb5d001958d02a8d05a63c44269e57b8.tar.bz2
samba-1ca75ec3bb5d001958d02a8d05a63c44269e57b8.zip
r819: Fix seg fault in rpc backend, found by Andrew Bartlett
(This used to be commit d4cc4b3d682eb828208a621fe6b795f3e77c746a)
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c b/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
index af3a6ac214..74b25884d6 100644
--- a/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
+++ b/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
@@ -321,11 +321,11 @@ static WERROR rpc_query_key(REG_KEY *k)
struct rpc_data *mydata = k->handle->backend_data;
struct rpc_key_data *mykeydata;
- r.in.handle = &mykeydata->pol;
init_winreg_String(&r.in.class, NULL);
error = rpc_key_put_rpc_data(k, &mykeydata);
if(!W_ERROR_IS_OK(error)) return error;
+ r.in.handle = &mykeydata->pol;
status = dcerpc_winreg_QueryInfoKey(mydata->pipe, k->mem_ctx, &r);