From 2dcac3c5e6ab19d0d274c09eb47c4fddf82b7a2c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 18 Jun 2008 16:22:39 +0200 Subject: nbt_server/wins: use talloc_zero() to create struct winsdb_handle metze (from samba4wins tree 0f2995f77ab092d71e539c2473c94956f9c253fb) --- source4/nbt_server/wins/wins_ldb.c | 2 +- source4/nbt_server/wins/winsdb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/nbt_server/wins') diff --git a/source4/nbt_server/wins/wins_ldb.c b/source4/nbt_server/wins/wins_ldb.c index 02ea306243..557c0f1dc6 100644 --- a/source4/nbt_server/wins/wins_ldb.c +++ b/source4/nbt_server/wins/wins_ldb.c @@ -98,7 +98,7 @@ static int wins_ldb_init(struct ldb_module *ctx) } } - h = talloc(ctx, struct winsdb_handle); + h = talloc_zero(ctx, struct winsdb_handle); if (!h) goto failed; h->ldb = ctx->ldb; h->caller = WINSDB_HANDLE_CALLER_ADMIN; diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c index 5fb688b7b7..fe0382d22b 100644 --- a/source4/nbt_server/wins/winsdb.c +++ b/source4/nbt_server/wins/winsdb.c @@ -1006,7 +1006,7 @@ struct winsdb_handle *winsdb_connect(TALLOC_CTX *mem_ctx, bool ret; int ldb_err; - h = talloc(mem_ctx, struct winsdb_handle); + h = talloc_zero(mem_ctx, struct winsdb_handle); if (!h) return NULL; if (lp_parm_bool(lp_ctx, NULL,"winsdb", "nosync", false)) { -- cgit