diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-24 14:29:06 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-10-24 15:36:53 +0200 |
commit | cd8a2b5ffeb88923d3e233e00aaa5f7f049d9b16 (patch) | |
tree | b5a9155e1e7362c09e6fb00447f5d29a82ef1e28 | |
parent | 176a837cc4a2a74777846bae392d3249e56476b9 (diff) | |
download | samba-cd8a2b5ffeb88923d3e233e00aaa5f7f049d9b16.tar.gz samba-cd8a2b5ffeb88923d3e233e00aaa5f7f049d9b16.tar.bz2 samba-cd8a2b5ffeb88923d3e233e00aaa5f7f049d9b16.zip |
[crash fix] don't use already free'ed memory
(found by "make valgrindtest" and my "start winbindd on make test" patch)
metze
(cherry picked from commit fe21e48489852720a05b305b251e4f5cbb200f7a)
(cherry picked from commit 26d8a1ad20c10da495970c584983fbd261b4946e)
(This used to be commit a128a8805e172738334ec6854548f138c335058b)
-rw-r--r-- | source3/groupdb/mapping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index bd0d775fc5..6f54e3d550 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -705,12 +705,12 @@ NTSTATUS pdb_create_builtin_alias(uint32 rid) return NT_STATUS_ACCESS_DENIED; } - DEBUG(10,("Creating alias %s with gid %d\n", name, gid)); + DEBUG(10,("Creating alias %s with gid %d\n", groupname, gid)); map.gid = gid; sid_copy(&map.sid, &sid); map.sid_name_use = SID_NAME_ALIAS; - fstrcpy(map.nt_name, name); + fstrcpy(map.nt_name, groupname); fstrcpy(map.comment, ""); status = pdb_add_group_mapping_entry(&map); |