From 575adb6060e101345c1258b7d13586e2fd1c7745 Mon Sep 17 00:00:00 2001 From: Sergio Rodriguez Date: Tue, 15 Nov 2016 19:18:17 -0800 Subject: [PATCH] tests: crypto: Fix unchecked return value on CTR PRNG test case This issue was reported by Coverity (CID 151952) Change-Id: I59a20a3ccbe606ef634db98ac6cc6889a3973ec3 Signed-off-by: Sergio Rodriguez --- tests/crypto/test_ctr_prng/src/test_ctr_prng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/crypto/test_ctr_prng/src/test_ctr_prng.c b/tests/crypto/test_ctr_prng/src/test_ctr_prng.c index e43859851ee..b30bf2f0f86 100644 --- a/tests/crypto/test_ctr_prng/src/test_ctr_prng.c +++ b/tests/crypto/test_ctr_prng/src/test_ctr_prng.c @@ -327,7 +327,7 @@ int test_prng_vector(struct prng_vector *v) goto exit_test; } - tc_ctr_prng_generate(&ctx, extra1, extra1_len, output, exp_len); + rc = tc_ctr_prng_generate(&ctx, extra1, extra1_len, output, exp_len); if (rc != TC_CRYPTO_SUCCESS) { rc = TC_FAIL; goto exit_test;