From: Andreas Schneider Date: Tue, 4 May 2021 09:06:23 +0000 (+0200) Subject: s3:libsmb: Check return code of cli_credentials_set_conf() X-Git-Tag: tevent-0.11.0~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b18fa931f313f1dd345cf6e9c74168a53b45bdf2;p=thirdparty%2Fsamba.git s3:libsmb: Check return code of cli_credentials_set_conf() Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 89b9fb0d6dd..e5274e05c40 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -72,7 +72,10 @@ struct cli_credentials *cli_session_creds_init(TALLOC_CTX *mem_ctx, if (lp_ctx == NULL) { goto fail; } - cli_credentials_set_conf(creds, lp_ctx); + ok = cli_credentials_set_conf(creds, lp_ctx); + if (!ok) { + goto fail; + } if (username == NULL) { username = "";