mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3:libnetapi: Check return code of cli_credentials_guess()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
304cb910bd
commit
08585bcfb2
@ -129,7 +129,8 @@ NET_API_STATUS libnetapi_net_init(struct libnetapi_ctx **context)
|
|||||||
|
|
||||||
BlockSignals(True, SIGPIPE);
|
BlockSignals(True, SIGPIPE);
|
||||||
|
|
||||||
cli_credentials_guess(ctx->creds, lp_ctx);
|
/* Ignore return code, as we might not have a smb.conf */
|
||||||
|
(void)cli_credentials_guess(ctx->creds, lp_ctx);
|
||||||
|
|
||||||
status = libnetapi_init_private_context(ctx);
|
status = libnetapi_init_private_context(ctx);
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
|
Reference in New Issue
Block a user