mirror of
https://github.com/samba-team/samba.git
synced 2025-10-26 23:33:15 +03:00
r734: Fix crash bug
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b2c05e3e86
commit
178cd902fc
@@ -316,14 +316,19 @@ 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;
|
||||
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)) {
|
||||
printf("QueryInfoKey failed - %s\n", nt_errstr(status));
|
||||
return ntstatus_to_werror(status);
|
||||
|
||||
Reference in New Issue
Block a user