From 144f2612e49d84b642b00f0b6be5276c48b43d44 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 15 Jun 2022 18:46:06 +0200 Subject: [PATCH] wc_ecc_export_x963_ex returns LENGTH_ONLY_E on a NULL output --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 5a2b904c8..c8b992c6e 100644 --- a/tests/api.c +++ b/tests/api.c @@ -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); }