diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-15 08:05:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:38 -0500 |
commit | 0c53b0ab722ffd8bac7157274b14f56f4c4a31e8 (patch) | |
tree | df887acff3e2f3f3fe169f15e81261ffd08a9b41 /source3/groupdb | |
parent | 6fd4813ece5e03c92334acfa7e168cd7d0248919 (diff) | |
download | samba-0c53b0ab722ffd8bac7157274b14f56f4c4a31e8.tar.gz samba-0c53b0ab722ffd8bac7157274b14f56f4c4a31e8.tar.bz2 samba-0c53b0ab722ffd8bac7157274b14f56f4c4a31e8.zip |
r17550: Fix a few bugs in the tdb_multikey code. Thanks to tridge for pointing them
out.
Volker
(This used to be commit 6bf5e7080a51c416d1d1466b1ca84c8f23a6bf2c)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index f688de38ed..b617e34565 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -95,10 +95,10 @@ static char **group_mapping_keys(TALLOC_CTX *mem_ctx, TDB_DATA data, return NULL; } - result[KEYNUM_SID] = talloc_strdup(mem_ctx, + result[KEYNUM_SID] = talloc_strdup(result, sid_string_static(&mapp->sid)); - result[KEYNUM_NAME] = talloc_strdup(mem_ctx, mapp->nt_name); - result[KEYNUM_GID] = talloc_asprintf(mem_ctx, "%d", (int)mapp->gid); + result[KEYNUM_NAME] = talloc_strdup(result, mapp->nt_name); + result[KEYNUM_GID] = talloc_asprintf(result, "%d", (int)mapp->gid); result[3] = NULL; if ((result[0] == NULL) || (result[1] == NULL) || @@ -109,7 +109,7 @@ static char **group_mapping_keys(TALLOC_CTX *mem_ctx, TDB_DATA data, } /* name lookups are case insensitive, store the key in upper case */ - strupper_m(result[1]); + strupper_m(result[KEYNUM_NAME]); return result; } |