summaryrefslogtreecommitdiffstats
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-05 09:45:00 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-05 09:45:00 +0000
commitcc3aff7436e8730efb6511ca18308830cc40cb61 (patch)
treeb7fb2013906ddc80a1f3e1083708e02c7592a8b9 /source3/passdb
parent5d41807f4d6b80dd1c51ce2764521a2a38c88936 (diff)
downloadsamba-cc3aff7436e8730efb6511ca18308830cc40cb61.tar.gz
samba-cc3aff7436e8730efb6511ca18308830cc40cb61.tar.xz
samba-cc3aff7436e8730efb6511ca18308830cc40cb61.zip
auto-init secrets.tdb
(This used to be commit aff916e543f1c70aa5fe0fc07dda21e772625097)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/secrets.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index d8d5c5b64a7..c855c0adc11 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -51,6 +51,7 @@ BOOL secrets_init(void)
void *secrets_fetch(char *key, size_t *size)
{
TDB_DATA kbuf, dbuf;
+ secrets_init();
if (!tdb)
return NULL;
kbuf.dptr = key;
@@ -66,6 +67,7 @@ void *secrets_fetch(char *key, size_t *size)
BOOL secrets_store(char *key, void *data, size_t size)
{
TDB_DATA kbuf, dbuf;
+ secrets_init();
if (!tdb)
return False;
kbuf.dptr = key;
@@ -81,6 +83,7 @@ BOOL secrets_store(char *key, void *data, size_t size)
BOOL secrets_delete(char *key)
{
TDB_DATA kbuf;
+ secrets_init();
if (!tdb)
return False;
kbuf.dptr = key;
@@ -216,6 +219,8 @@ void reset_globals_after_fork(void)
{
unsigned char dummy;
+ secrets_init();
+
/*
* Increment the global seed value to ensure every smbd starts
* with a new random seed.