mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
test: fix coverity 1429210: unchecked return value
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14615)
This commit is contained in:
parent
b8cb90cdb6
commit
f47865156a
@ -869,7 +869,8 @@ static int test_gcm128(int idx)
|
|||||||
if (A.data != NULL)
|
if (A.data != NULL)
|
||||||
CRYPTO_gcm128_aad(&ctx, A.data, A.size);
|
CRYPTO_gcm128_aad(&ctx, A.data, A.size);
|
||||||
if (P.data != NULL)
|
if (P.data != NULL)
|
||||||
CRYPTO_gcm128_encrypt( &ctx, P.data, out, P.size);
|
if (!TEST_int_ge(CRYPTO_gcm128_encrypt( &ctx, P.data, out, P.size), 0))
|
||||||
|
return 0;
|
||||||
if (!TEST_false(CRYPTO_gcm128_finish(&ctx, T.data, 16))
|
if (!TEST_false(CRYPTO_gcm128_finish(&ctx, T.data, 16))
|
||||||
|| (C.data != NULL
|
|| (C.data != NULL
|
||||||
&& !TEST_mem_eq(out, P.size, C.data, P.size)))
|
&& !TEST_mem_eq(out, P.size, C.data, P.size)))
|
||||||
|
Loading…
Reference in New Issue
Block a user