1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s3:libsmb: Covscan: unchecked return value for cli_credentials_set_smb_encryption()

Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Pavel Filipenský 2022-05-11 10:14:53 +02:00 committed by Jeremy Allison
parent 3960af99e5
commit 9da9b516d4

View File

@ -308,20 +308,23 @@ static struct cli_credentials *SMBC_auth_credentials(TALLOC_CTX *mem_ctx,
/* Use the config option */
break;
case SMBC_ENCRYPTLEVEL_NONE:
cli_credentials_set_smb_encryption(creds,
SMB_ENCRYPTION_OFF,
CRED_SPECIFIED);
(void)cli_credentials_set_smb_encryption(
creds,
SMB_ENCRYPTION_OFF,
CRED_SPECIFIED);
break;
case SMBC_ENCRYPTLEVEL_REQUEST:
cli_credentials_set_smb_encryption(creds,
SMB_ENCRYPTION_DESIRED,
CRED_SPECIFIED);
(void)cli_credentials_set_smb_encryption(
creds,
SMB_ENCRYPTION_DESIRED,
CRED_SPECIFIED);
break;
case SMBC_ENCRYPTLEVEL_REQUIRE:
default:
cli_credentials_set_smb_encryption(creds,
SMB_ENCRYPTION_REQUIRED,
CRED_SPECIFIED);
(void)cli_credentials_set_smb_encryption(
creds,
SMB_ENCRYPTION_REQUIRED,
CRED_SPECIFIED);
break;
}