diff options
author | Stefan Metzmacher <metze@sernet.de> | 2008-06-18 16:22:39 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-19 07:05:54 +0100 |
commit | 2dcac3c5e6ab19d0d274c09eb47c4fddf82b7a2c (patch) | |
tree | 57c79459ca32f7bdf53f66f73ef53f47b1505a5a /source4 | |
parent | 6bcd2cbd27cc62e5cfc5a4707b7a991ab691f3c8 (diff) | |
download | samba-2dcac3c5e6ab19d0d274c09eb47c4fddf82b7a2c.tar.gz samba-2dcac3c5e6ab19d0d274c09eb47c4fddf82b7a2c.tar.bz2 samba-2dcac3c5e6ab19d0d274c09eb47c4fddf82b7a2c.zip |
nbt_server/wins: use talloc_zero() to create struct winsdb_handle
metze
(from samba4wins tree 0f2995f77ab092d71e539c2473c94956f9c253fb)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/nbt_server/wins/wins_ldb.c | 2 | ||||
-rw-r--r-- | source4/nbt_server/wins/winsdb.c | 2 |
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)) { |