diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-06-05 18:45:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:31 -0500 |
commit | fe3bcd4588f75805a12ff6c11f4f0794f9963463 (patch) | |
tree | 3297065903b1770fc6b3fe3ebe2a45d546f9cb8a /source4/lib/registry/reg_backend_rpc | |
parent | ed0123a62bbb4c2891c39a84eb657c4f474dd220 (diff) | |
download | samba-fe3bcd4588f75805a12ff6c11f4f0794f9963463.tar.gz samba-fe3bcd4588f75805a12ff6c11f4f0794f9963463.tar.bz2 samba-fe3bcd4588f75805a12ff6c11f4f0794f9963463.zip |
r1032: Fix RPC backend segfault
(This used to be commit db902bff3c5eb54d6b1035d009948ff316cffa94)
Diffstat (limited to 'source4/lib/registry/reg_backend_rpc')
-rw-r--r-- | source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c | 3 |
1 files changed, 1 insertions, 2 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 28e2094bed..4e6944a1e3 100644 --- a/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c +++ b/source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c @@ -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(), |