summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_ldb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-08-22 05:33:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:15 -0500
commitdcd43a4cbef3bee948bdbd65212361b6043aa4bd (patch)
tree82627a8ab414d6fe86e77e4d4ff589bb00fc5e4d /source4/lib/registry/reg_backend_ldb
parentca885cb2d1b0165a6e8c819b82ad9d13de9643ec (diff)
downloadsamba-dcd43a4cbef3bee948bdbd65212361b6043aa4bd.tar.gz
samba-dcd43a4cbef3bee948bdbd65212361b6043aa4bd.tar.bz2
samba-dcd43a4cbef3bee948bdbd65212361b6043aa4bd.zip
r1990: Fix breakage caused by the recent talloc changes. (Failure to process
an SPNEGO login from WinXP at least). talloc_asprintf_append() lost an argument, but because TALLOC_CTX is now a void*, this was not picked up by the compiler. I've tested the login (asn1), but not the registry/gtk changes. Andrew Bartlett (This used to be commit 4294be44057124568fe1d176702056bb62ad3214)
Diffstat (limited to 'source4/lib/registry/reg_backend_ldb')
-rw-r--r--source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c b/source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c
index fa7e22d010..6945ebdb55 100644
--- a/source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c
+++ b/source4/lib/registry/reg_backend_ldb/reg_backend_ldb.c
@@ -28,7 +28,7 @@ static char *reg_path_to_ldb(TALLOC_CTX *mem_ctx, const char *path, const char *
char *end = mypath, *begin;
if(add)
- ret = talloc_asprintf_append(mem_ctx, ret, "%s", add);
+ ret = talloc_asprintf_append(ret, "%s", add);
while(end) {
char *keyname;
@@ -38,7 +38,7 @@ static char *reg_path_to_ldb(TALLOC_CTX *mem_ctx, const char *path, const char *
else keyname = mypath;
if(strlen(keyname))
- ret = talloc_asprintf_append(mem_ctx, ret, "key=%s,", keyname);
+ ret = talloc_asprintf_append(ret, "key=%s,", keyname);
if(begin) {
begin[0] = '\0';