Skip to contentSkip to conversation

test/crypto: fix return value in RSA verify test

PATCH New Gowrishankar Muthukrishnan 1 participant 1 message May 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/crypto: fix return value in RSA verify test

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")
---
 app/test/test_cryptodev_asym.c | 1 +
 1 file changed, 1 insertion(+)
app/test/test_cryptodev_asym.c +1 -0
index cd4fe7e14e..f87cd72df1 100644
@@ -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;
Signature · 1 line
2.25.1