git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: Fix Coverity ID 1034, CHECKED_RETURN
[ira/wip.git]
/
source3
/
passdb
/
secrets.c
diff --git
a/source3/passdb/secrets.c
b/source3/passdb/secrets.c
index 45f8e152be80a43aa3097e95dda18d81c60ef291..49a01254e3eece4758c5e2c22cd350475be0b127 100644
(file)
--- 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;
}