1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

r734: Fix crash bug

(This used to be commit 178cd902fc7069e3d613c46fc4845101a0229655)
This commit is contained in:
Jelmer Vernooij 2004-05-14 13:07:20 +00:00 committed by Gerald (Jerry) Carter
parent 8584141476
commit 53f2f8254b

View File

@ -316,12 +316,17 @@ static WERROR rpc_add_key(REG_KEY *parent, const char *name, uint32 access_mask,
static WERROR rpc_query_key(REG_KEY *k)
{
NTSTATUS status;
WERROR error;
struct winreg_QueryInfoKey r;
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;
status = dcerpc_winreg_QueryInfoKey(mydata->pipe, k->mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {