git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f13044
)
s3:winbindd: Check return code of cli_credentials_set_conf()
author
Andreas Schneider
<asn@samba.org>
Tue, 4 May 2021 09:24:55 +0000
(11:24 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 29 Jun 2021 02:19:35 +0000
(
02:19
+0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/winbindd/winbindd_cm.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_cm.c
b/source3/winbindd/winbindd_cm.c
index 79e840780049836ca076fcdd83ff4ca2e703faa0..9f0fd2b706cf45a865759ce72e8152d120656fa7 100644
(file)
--- a/
source3/winbindd/winbindd_cm.c
+++ b/
source3/winbindd/winbindd_cm.c
@@
-707,7
+707,12
@@
static NTSTATUS cm_get_ipc_credentials(TALLOC_CTX *mem_ctx,
goto fail;
}
- cli_credentials_set_conf(creds, lp_ctx);
+ ok = cli_credentials_set_conf(creds, lp_ctx);
+ if (!ok) {
+ status = NT_STATUS_INTERNAL_ERROR;
+ goto fail;
+ }
+
cli_credentials_set_kerberos_state(creds,
CRED_USE_KERBEROS_DISABLED,
CRED_SPECIFIED);