mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3:idmap_tdb: properly initialize the idmap_tdb context with zero
This commit is contained in:
parent
9c3d4dff82
commit
78979c6420
@ -484,7 +484,7 @@ static NTSTATUS idmap_tdb_db_init(struct idmap_domain *dom, const char *params)
|
||||
|
||||
DEBUG(10, ("idmap_tdb_db_init called for domain '%s'\n", dom->name));
|
||||
|
||||
ctx = talloc(dom, struct idmap_tdb_context);
|
||||
ctx = talloc_zero(dom, struct idmap_tdb_context);
|
||||
if ( ! ctx) {
|
||||
DEBUG(0, ("Out of memory!\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user