summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/login_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/passdb/login_cache.c b/source/passdb/login_cache.c
index 5acec64573b..fc05122ccaf 100644
--- a/source/passdb/login_cache.c
+++ b/source/passdb/login_cache.c
@@ -110,7 +110,9 @@ BOOL login_cache_write(const SAM_ACCOUNT *sampass, LOGIN_CACHE entry)
TDB_DATA keybuf, databuf;
BOOL ret;
-
+
+ if (!login_cache_init())
+ return False;
keybuf.dptr = strdup(pdb_get_nt_username(sampass));
if (!keybuf.dptr || !strlen(keybuf.dptr)) {