mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
[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 commit26d8a1ad20
) (This used to be commita128a8805e
)
This commit is contained in:
parent
176a837cc4
commit
cd8a2b5ffe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user