diff options
Diffstat (limited to 'source4/rpc_server/netlogon')
-rw-r--r-- | source4/rpc_server/netlogon/schannel_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/schannel_state.c b/source4/rpc_server/netlogon/schannel_state.c index 0900c05393..5657b1cd64 100644 --- a/source4/rpc_server/netlogon/schannel_state.c +++ b/source4/rpc_server/netlogon/schannel_state.c @@ -33,12 +33,13 @@ static struct ldb_wrap *schannel_db_connect(TALLOC_CTX *mem_ctx) char *path; struct ldb_wrap *ldb; - path = lock_path(mem_ctx, "schannel.ldb"); + path = smbd_tmp_path(mem_ctx, "schannel.ldb"); if (!path) { return NULL; } ldb = ldb_wrap_connect(mem_ctx, path, 0, NULL); + talloc_free(path); if (!ldb) { return NULL; } |