mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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>
This commit is contained in:
parent
b5a34e65d1
commit
f092ee2a5f
@ -42,15 +42,24 @@ struct db_context *open_schannel_session_store(TALLOC_CTX *mem_ctx,
|
|||||||
{
|
{
|
||||||
struct db_context *db_sc = NULL;
|
struct db_context *db_sc = NULL;
|
||||||
char *fname = lpcfg_private_db_path(mem_ctx, lp_ctx, "schannel_store");
|
char *fname = lpcfg_private_db_path(mem_ctx, lp_ctx, "schannel_store");
|
||||||
|
int hash_size;
|
||||||
|
|
||||||
if (!fname) {
|
if (!fname) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
db_sc = dbwrap_local_open(mem_ctx, lp_ctx, fname, 0,
|
hash_size = lpcfg_tdb_hash_size(lp_ctx, fname);
|
||||||
TDB_CLEAR_IF_FIRST|TDB_NOSYNC, O_RDWR|O_CREAT,
|
|
||||||
0600, DBWRAP_LOCK_ORDER_NONE,
|
db_sc = dbwrap_local_open(
|
||||||
DBWRAP_FLAG_NONE);
|
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) {
|
if (!db_sc) {
|
||||||
DEBUG(0,("open_schannel_session_store: Failed to open %s - %s\n",
|
DEBUG(0,("open_schannel_session_store: Failed to open %s - %s\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user