[PATCH] test/crypto: fix return value in RSA verify test

Gowrishankar Muthukrishnan gmuthukrishn at marvell.com
Sat May 10 12:45:49 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 cd4fe7e14e..f87cd72df1 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