diff options
author | Luke Leighton <lkcl@samba.org> | 2000-02-10 15:25:01 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-02-10 15:25:01 +0000 |
commit | c625bde04f428392d48ef8a672a9ac744ecd038e (patch) | |
tree | f0d9fecc45eb8a9e008f91829e6da54a0d7cb506 /source/lsarpcd | |
parent | 75934341c9edf890f4c9b04eaa3f83c4b2fbc189 (diff) | |
download | samba-c625bde04f428392d48ef8a672a9ac744ecd038e.tar.gz |
made sure that the secrets tdb was only initialised once!
Diffstat (limited to 'source/lsarpcd')
-rw-r--r-- | source/lsarpcd/secret_db.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/lsarpcd/secret_db.c b/source/lsarpcd/secret_db.c index 81eabf98978..e23cdd96f22 100644 --- a/source/lsarpcd/secret_db.c +++ b/source/lsarpcd/secret_db.c @@ -174,6 +174,14 @@ BOOL secret_init_db(void) strupper(domname); strupper(srvname); + tdb = open_secret_db(O_RDWR); + + if (tdb == NULL) + { + DEBUG(10,("secret_init_db: opened\n")); + return True; + } + tdb = open_secret_db(O_RDWR | O_CREAT); if (tdb == NULL) @@ -182,7 +190,7 @@ BOOL secret_init_db(void) return False; } - DEBUG(10,("secret_init_db: opened\n")); + DEBUG(10,("secret_init_db: opened first time: initialising.\n")); if (trust_get_passwd_time(trust_passwd, domname, srvname, &crt)) { |