summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-04-23 09:54:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:20 -0500
commitf880fe51b334847ebfe7be34f83fcee572f86352 (patch)
tree83171fae6cea60fc0d001b8b76e2e8630adaaeab
parent829f10ba51da3c8f5bfb6257135aad5812308a59 (diff)
downloadsamba-f880fe51b334847ebfe7be34f83fcee572f86352.tar.gz
samba-f880fe51b334847ebfe7be34f83fcee572f86352.tar.bz2
samba-f880fe51b334847ebfe7be34f83fcee572f86352.zip
r340: fix a segfault in the login_cache code...
metze (This used to be commit 908d8a412559997256f51caa30da254f0768f114)
-rw-r--r--source3/passdb/login_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/login_cache.c b/source3/passdb/login_cache.c
index 5acec64573..fc05122cca 100644
--- a/source3/passdb/login_cache.c
+++ b/source3/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)) {