Exposed by recent rewrite of ASN1_STRING_to_UTF8().
CID 352831
ok jsing
-/* $OpenBSD: x509_utl.c,v 1.2 2020/09/13 15:06:17 beck Exp $ */
+/* $OpenBSD: x509_utl.c,v 1.3 2022/05/20 07:58:54 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
rv = -1;
} else {
int astrlen;
- unsigned char *astr;
+ unsigned char *astr = NULL;
astrlen = ASN1_STRING_to_UTF8(&astr, a);
if (astrlen < 0)
return -1;