[PATCH] test/crypto: fix return value in RSA test
Gowrishankar Muthukrishnan
gmuthukrishn at marvell.com
Thu May 15 10:08:50 CEST 2025
This patch fixes incorrect return value when RSA negative
test scenario is validated.
Coverity-issue: 457463
Fixes: 9682e8246ae ("test/crypto: add negative case for RSA verification")
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
---
app/test/test_cryptodev_asym.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index 2377a18c72..6ecbea6b40 100644
--- a/app/test/test_cryptodev_asym.c
+++ b/app/test/test_cryptodev_asym.c
@@ -155,6 +155,7 @@ queue_ops_rsa_sign_verify(void *sess)
if (result_op->status != RTE_CRYPTO_OP_STATUS_ERROR) {
RTE_LOG(ERR, USER1, "Failed to process sign-verify op\n");
status = TEST_FAILED;
+ goto error_exit;
}
status = TEST_SUCCESS;
--
2.25.1
More information about the dev
mailing list