]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb: Check return code of cli_credentials_set_conf()
authorAndreas Schneider <asn@samba.org>
Tue, 4 May 2021 09:06:23 +0000 (11:06 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 29 Jun 2021 02:19:35 +0000 (02:19 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libsmb/cliconnect.c

index 89b9fb0d6dddc407b4eb9cc7a0a65799b909d7ec..e5274e05c40885207cfadb70b9515f470c44b582 100644 (file)
@@ -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 = "";