Skip to content

Commit

Permalink
coverity 1520506: error handling
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from #20132)

(cherry picked from commit a4347a9)
  • Loading branch information
paulidale committed Jan 29, 2023
1 parent 2680cd2 commit da6d418
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/cmp_asn_test.c
Expand Up @@ -47,7 +47,10 @@ static int execute_cmp_asn1_get_int_test(CMP_ASN_TEST_FIXTURE *fixture)

if (!TEST_ptr(asn1integer))
return 0;
ASN1_INTEGER_set(asn1integer, 77);
if (!TEST_true(ASN1_INTEGER_set(asn1integer, 77))) {
ASN1_INTEGER_free(asn1integer);
return 0;
}
res = TEST_int_eq(77, ossl_cmp_asn1_get_int(asn1integer));
ASN1_INTEGER_free(asn1integer);
return res;
Expand Down

0 comments on commit da6d418

Please sign in to comment.