Skip to content

Commit ff35d02

Browse files
committed
Fix bug in condition logic
This bug causes an incorrect indication of the availability of algos in fips mode. Fixes: a9288f5 Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
1 parent e359b4a commit ff35d02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/s390_crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,8 @@ int s390_get_functionlist(libica_func_list_element *pmech_list,
709709
* approved.
710710
* - We are in an error state.
711711
* */
712-
if (((fips & ICA_FIPS_MODE) && !fips_approved(pmech_list[x].mech_mode_id &&
713-
!fips_override(pmech_list[x].mech_mode_id)))
712+
if (((fips & ICA_FIPS_MODE) && !fips_approved(pmech_list[x].mech_mode_id) &&
713+
!fips_override(pmech_list[x].mech_mode_id))
714714
|| fips >> 1) {
715715
pmech_list[x].flags = 0;
716716
pmech_list[x].property = 0;

0 commit comments

Comments
 (0)