diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-05 09:45:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-05 09:45:00 +0000 |
commit | cc3aff7436e8730efb6511ca18308830cc40cb61 (patch) | |
tree | b7fb2013906ddc80a1f3e1083708e02c7592a8b9 /source3 | |
parent | 5d41807f4d6b80dd1c51ce2764521a2a38c88936 (diff) | |
download | samba-cc3aff7436e8730efb6511ca18308830cc40cb61.tar.gz samba-cc3aff7436e8730efb6511ca18308830cc40cb61.tar.bz2 samba-cc3aff7436e8730efb6511ca18308830cc40cb61.zip |
auto-init secrets.tdb
(This used to be commit aff916e543f1c70aa5fe0fc07dda21e772625097)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/secrets.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c index d8d5c5b64a..c855c0adc1 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. |