diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-28 11:53:00 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-01 14:04:22 +0200 |
commit | fcdfff1cc8c1214cbce1fdd863b1ede970234121 (patch) | |
tree | ad50b65a4882ebcb5187305c9b56d61e13eef360 /source3/passdb | |
parent | d20f88c60302b9af21b3a04e1ebc536a0e0c0e36 (diff) | |
download | samba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.tar.gz samba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.tar.bz2 samba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.zip |
Convert dbwrap_trans_store to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 5f4de856af1abe63b13059bbe1615cb5877770d0)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/secrets.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c index 8d08d90dcf..71db81c0e4 100644 --- a/source3/passdb/secrets.c +++ b/source3/passdb/secrets.c @@ -140,13 +140,16 @@ void *secrets_fetch(const char *key, size_t *size) */ bool secrets_store(const char *key, const void *data, size_t size) { + NTSTATUS status; + if (!secrets_init()) { return false; } - return dbwrap_trans_store(db_ctx, string_tdb_data(key), - make_tdb_data((const uint8 *)data, size), - TDB_REPLACE) == 0; + status = dbwrap_trans_store(db_ctx, string_tdb_data(key), + make_tdb_data((const uint8 *)data, size), + TDB_REPLACE); + return NT_STATUS_IS_OK(status); } |