summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/secrets.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c
index e4f1744bfdf..d88c53897d0 100644
--- a/source/passdb/secrets.c
+++ b/source/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;
}