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:
parent
3960af99e5
commit
9da9b516d4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user