From: Andreas Schneider Date: Tue, 22 Jun 2021 07:34:39 +0000 (+0200) Subject: s3:libnetapi: Check return code of cli_credentials_guess() X-Git-Tag: tevent-0.11.0~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08585bcfb2b60c1684f2f5c69496d16b8d86ee6b;p=thirdparty%2Fsamba.git s3:libnetapi: Check return code of cli_credentials_guess() Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index fb51bb34323..8dbb05307d2 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -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) {