summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 18:42:48 +0100
committerVolker Lendecke <vl@samba.org>2011-03-16 21:14:58 +0100
commit4668ac8b16daddacbaa0fe0e7ecdfbe6309abd3a (patch)
treee64eca0a59334a54db8defa9b3f0a2f789131dd1 /source3
parent7bb76bc7c794e22d564375343946907323406c65 (diff)
downloadsamba-4668ac8b16daddacbaa0fe0e7ecdfbe6309abd3a.tar.gz
samba-4668ac8b16daddacbaa0fe0e7ecdfbe6309abd3a.tar.bz2
samba-4668ac8b16daddacbaa0fe0e7ecdfbe6309abd3a.zip
s3: Fix Coverity ID 1034, CHECKED_RETURN
In all other places we check the result of secrets_init.
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/secrets.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 45f8e152be..49a01254e3 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -445,9 +445,7 @@ NTSTATUS secrets_trusted_domains(TALLOC_CTX *mem_ctx, uint32 *num_domains,
{
struct list_trusted_domains_state state;
- secrets_init();
-
- if (db_ctx == NULL) {
+ if (!secrets_init()) {
return NT_STATUS_ACCESS_DENIED;
}