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 <gmuthukri...@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

Reply via email to