diff options
author | Andreas Schneider <asn@samba.org> | 2021-06-22 09:34:39 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-06-29 02:19:35 +0000 |
commit | 08585bcfb2b60c1684f2f5c69496d16b8d86ee6b (patch) | |
tree | bf7cd8b57f44ce74c270a5dd7622a2e70941b45b /source3/lib/netapi | |
parent | 304cb910bd3637e79805b7a0fd21f508d1f9d5a0 (diff) | |
download | samba-08585bcfb2b60c1684f2f5c69496d16b8d86ee6b.tar.gz |
s3:libnetapi: Check return code of cli_credentials_guess()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/netapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |