diff options
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/secrets.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c index 71db81c0e4..34a87bd0d0 100644 --- a/source3/passdb/secrets.c +++ b/source3/passdb/secrets.c @@ -157,11 +157,14 @@ bool secrets_store(const char *key, const void *data, size_t size) */ bool secrets_delete(const char *key) { + NTSTATUS status; if (!secrets_init()) { return false; } - return dbwrap_trans_delete(db_ctx, string_tdb_data(key)) == 0; + status = dbwrap_trans_delete(db_ctx, string_tdb_data(key)); + + return NT_STATUS_IS_OK(status); } /** |