summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/secrets.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index e4f1744bfd..d88c53897d 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -111,10 +111,6 @@ void *secrets_fetch(const char *key, size_t *size)
return NULL;
}
- if (!tdb) {
- return NULL;
- }
-
dbuf = tdb_fetch(tdb, string_tdb_data(key));
if (size) {
*size = dbuf.dsize;
@@ -131,10 +127,6 @@ bool secrets_store(const char *key, const void *data, size_t size)
return false;
}
- if (!tdb) {
- return false;
- }
-
return tdb_trans_store(tdb, string_tdb_data(key),
make_tdb_data((const uint8 *)data, size),
TDB_REPLACE) == 0;
@@ -149,10 +141,6 @@ bool secrets_delete(const char *key)
return false;
}
- if (!tdb) {
- return false;
- }
-
return tdb_trans_delete(tdb, string_tdb_data(key)) == 0;
}