Skip to content

Commit de310f2

Browse files
committed
bugfix: correct calculation of fips indicator list length
Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
1 parent 841a8ab commit de310f2

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
@@ -799,11 +799,11 @@ int s390_get_fips_indicator(libica_fips_indicator_element *indicator_list,
799799
return EINVAL;
800800

801801
if (!indicator_list) {
802-
*indicator_list_len = sizeof(icaList) / sizeof(libica_fips_indicator_element);
802+
*indicator_list_len = sizeof(icaList) / sizeof(libica_func_list_element_int);
803803
return 0;
804804
}
805805

806-
if (*indicator_list_len < (sizeof(icaList) / sizeof(libica_fips_indicator_element)))
806+
if (*indicator_list_len < (sizeof(icaList) / sizeof(libica_func_list_element_int)))
807807
return EINVAL;
808808

809809
for (i = 0; i < *indicator_list_len; i++) {

0 commit comments

Comments
 (0)