1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +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:
Andreas Schneider
2021-06-22 09:34:39 +02:00
committed by Andrew Bartlett
parent 304cb910bd
commit 08585bcfb2

View File

@ -129,7 +129,8 @@ NET_API_STATUS libnetapi_net_init(struct libnetapi_ctx **context)
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);
if (status != 0) {