1
0
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:
Michael Adam 2010-06-22 09:01:32 +02:00
parent 9c3d4dff82
commit 78979c6420

View File

@ -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;