asn1_string_to_utf8 test: appease coverity
authortb <tb@openbsd.org>
Wed, 23 Nov 2022 08:51:05 +0000 (08:51 +0000)
committertb <tb@openbsd.org>
Wed, 23 Nov 2022 08:51:05 +0000 (08:51 +0000)
commita201dd641c0ccb400edef7e81e23c453d6779580
tree0fa6dca4b3111e94fa1d2c9932ccb2c2f5ace1c3
parent2c55d1bcfafde237f1d522a85140e2f07ef0c111
asn1_string_to_utf8 test: appease coverity

Check for ASN_STRING_to_UTF8() failure before checking it matches our
expectations. This should convey clearly that test->want_len is never
negative.

CID 377011

Diagnosed by jsing
regress/lib/libcrypto/asn1/asn1_string_to_utf8.c