1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-26 23:33:15 +03:00

r1032: Fix RPC backend segfault

This commit is contained in:
Jelmer Vernooij
2004-06-05 18:45:27 +00:00
committed by Gerald (Jerry) Carter
parent 88222b5da9
commit db902bff3c

View File

@@ -88,7 +88,6 @@ static WERROR rpc_query_key(REG_KEY *k);
static WERROR rpc_open_registry(REG_HANDLE *h, const char *location, const char *credentials)
{
char *binding = strdup(location);
NTSTATUS status;
char *user, *pass;
@@ -98,7 +97,7 @@ static WERROR rpc_open_registry(REG_HANDLE *h, const char *location, const char
pass = strchr(user, '%');
*pass = '\0'; pass++;
status = dcerpc_pipe_connect((struct dcerpc_pipe **)&h->backend_data, binding,
status = dcerpc_pipe_connect((struct dcerpc_pipe **)&h->backend_data, h->location,
DCERPC_WINREG_UUID,
DCERPC_WINREG_VERSION,
lp_workgroup(),