diff options
author | Volker Lendecke <vl@samba.org> | 2018-04-17 16:18:50 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-04-24 01:53:18 +0200 |
commit | f092ee2a5f02637f9ed55253a83d4132e0e4831d (patch) | |
tree | eb936d8f7c9a210c594047ff956f410c4c16eafd /libcli | |
parent | b5a34e65d1cbe08da733ae79078bf76f83c3fbe4 (diff) | |
download | samba-f092ee2a5f02637f9ed55253a83d4132e0e4831d.tar.gz |
libcli: Call dbwrap_local_open with the correct hash size
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/schannel_state_tdb.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/libcli/auth/schannel_state_tdb.c b/libcli/auth/schannel_state_tdb.c index 6a19823f639..4b02261663a 100644 --- a/libcli/auth/schannel_state_tdb.c +++ b/libcli/auth/schannel_state_tdb.c @@ -42,15 +42,24 @@ struct db_context *open_schannel_session_store(TALLOC_CTX *mem_ctx, { struct db_context *db_sc = NULL; char *fname = lpcfg_private_db_path(mem_ctx, lp_ctx, "schannel_store"); + int hash_size; if (!fname) { return NULL; } - db_sc = dbwrap_local_open(mem_ctx, lp_ctx, fname, 0, - TDB_CLEAR_IF_FIRST|TDB_NOSYNC, O_RDWR|O_CREAT, - 0600, DBWRAP_LOCK_ORDER_NONE, - DBWRAP_FLAG_NONE); + hash_size = lpcfg_tdb_hash_size(lp_ctx, fname); + + db_sc = dbwrap_local_open( + mem_ctx, + lp_ctx, + fname, + hash_size, + TDB_CLEAR_IF_FIRST|TDB_NOSYNC, + O_RDWR|O_CREAT, + 0600, + DBWRAP_LOCK_ORDER_NONE, + DBWRAP_FLAG_NONE); if (!db_sc) { DEBUG(0,("open_schannel_session_store: Failed to open %s - %s\n", |