mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
Fix memleak in ldapsam_rename_sam_account() found by IBM checker.
The check for out of memory was the wrong way round. Michael (This used to be commit d7a7b793203b986823859ac5171d2d4c30e52415)
This commit is contained in:
parent
fbd9a15996
commit
7c6d77dd88
@ -1973,7 +1973,7 @@ static NTSTATUS ldapsam_rename_sam_account(struct pdb_methods *my_methods,
|
||||
|
||||
/* rename the posix user */
|
||||
rename_script = SMB_STRDUP(lp_renameuser_script());
|
||||
if (rename_script) {
|
||||
if (rename_script == NULL) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user