wc_ecc_export_x963_ex returns LENGTH_ONLY_E on a NULL output

This commit is contained in:
Juliusz Sosinowicz
2022-06-15 18:46:06 +02:00
parent 8e84560f71
commit 144f2612e4

View File

@ -24713,7 +24713,7 @@ static int test_wc_ecc_export_x963_ex (void)
if (ret == BAD_FUNC_ARG) {
ret = wc_ecc_export_x963_ex(&key, out, &badOutLen, COMP);
}
if (ret == BUFFER_E) {
if (ret == LENGTH_ONLY_E) {
key.idx = -4;
ret = wc_ecc_export_x963_ex(&key, out, &outlen, COMP);
}