forked from wolfSSL/wolfssl
Added a ret check
This commit is contained in:
@ -22785,11 +22785,12 @@ static int test_wc_HashSetFlags(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ret == 0) {
|
||||
ret = wc_HashFree(&hash, notSupported[j]);
|
||||
if (ret == BAD_FUNC_ARG) {
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
printf(resultFmt, ret == 0 ? passed : failed);
|
||||
@ -22881,11 +22882,12 @@ static int test_wc_HashGetFlags(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ret == 0) {
|
||||
ret = wc_HashFree(&hash, notSupported[j]);
|
||||
if (ret == BAD_FUNC_ARG) {
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
printf(resultFmt, ret == 0 ? passed : failed);
|
||||
|
Reference in New Issue
Block a user