summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/nbt_server/wins/wins_ldb.c2
-rw-r--r--source4/nbt_server/wins/winsdb.c2
2 files changed, 2 insertions, 2 deletions
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)) {