diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-04-11 16:37:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:13 -0500 |
commit | c60c5ebb910a77f6f3f345093794637714eb66e2 (patch) | |
tree | 91e9e3200ed7400e9c5f8791270ca2ab84fdcd62 /source4/lib/registry/common | |
parent | 07afafd45df34c4617c9e3e31bcd3130a9e255e3 (diff) | |
download | samba-c60c5ebb910a77f6f3f345093794637714eb66e2.tar.gz samba-c60c5ebb910a77f6f3f345093794637714eb66e2.tar.bz2 samba-c60c5ebb910a77f6f3f345093794637714eb66e2.zip |
r166: Fix enumerating values in nt4 backend
(This used to be commit 1a7de762c60177b6e250f81cdeb3466fce148bff)
Diffstat (limited to 'source4/lib/registry/common')
-rw-r--r-- | source4/lib/registry/common/reg_interface.c | 1 | ||||
-rw-r--r-- | source4/lib/registry/common/registry.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/registry/common/reg_interface.c b/source4/lib/registry/common/reg_interface.c index 9c78ae55fb..5e6b4fbac8 100644 --- a/source4/lib/registry/common/reg_interface.c +++ b/source4/lib/registry/common/reg_interface.c @@ -98,6 +98,7 @@ WERROR reg_open(const char *backend, const char *location, const char *credentia ret = talloc(mem_ctx, sizeof(REG_HANDLE)); ZERO_STRUCTP(ret); ret->location = location?talloc_strdup(mem_ctx, location):NULL; + ret->credentials = credentials?talloc_strdup(mem_ctx, credentials):NULL; ret->functions = entry->functions; ret->backend_data = NULL; ret->mem_ctx = mem_ctx; diff --git a/source4/lib/registry/common/registry.h b/source4/lib/registry/common/registry.h index 6e12de258d..9d7e17cf56 100644 --- a/source4/lib/registry/common/registry.h +++ b/source4/lib/registry/common/registry.h @@ -121,6 +121,7 @@ struct reg_handle_s { struct registry_ops *functions; REG_SUBTREE *subtrees; char *location; + char *credentials; void *backend_data; TALLOC_CTX *mem_ctx; }; |