diff options
author | Volker Lendecke <vl@samba.org> | 2014-03-26 14:08:40 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-31 22:52:13 +0200 |
commit | 92d20d77b1d9bc32bc971454016adabd8de79587 (patch) | |
tree | 58f58187d57d729f16906c9117deb506e66b2a08 /source4/param | |
parent | e2e06b342a826bcbb6e6a116edf2ffc4fd43ad22 (diff) | |
download | samba-92d20d77b1d9bc32bc971454016adabd8de79587.tar.gz samba-92d20d77b1d9bc32bc971454016adabd8de79587.tar.xz samba-92d20d77b1d9bc32bc971454016adabd8de79587.zip |
secrets: Avoid passing lp_ctx to tdb_wrap_open in randseed_init
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/secrets.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/param/secrets.c b/source4/param/secrets.c index aaf6259ef0..e27524e231 100644 --- a/source4/param/secrets.c +++ b/source4/param/secrets.c @@ -59,7 +59,10 @@ bool randseed_init(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) fname = lpcfg_private_path(mem_ctx, lp_ctx, "randseed.tdb"); - tdb = tdb_wrap_open(mem_ctx, fname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600, lp_ctx); + tdb = tdb_wrap_open_(mem_ctx, fname, + lpcfg_tdb_hash_size(lp_ctx, fname), + lpcfg_tdb_flags(lp_ctx, TDB_DEFAULT), + O_RDWR|O_CREAT, 0600); if (!tdb) { DEBUG(0,("Failed to open %s\n", fname)); |