Convert ASN1_STRING_type_new() to calloc().
authorjsing <jsing@openbsd.org>
Fri, 3 Dec 2021 17:01:07 +0000 (17:01 +0000)
committerjsing <jsing@openbsd.org>
Fri, 3 Dec 2021 17:01:07 +0000 (17:01 +0000)
commita059a1e0d6def91e9c103afb5a78aa26097c82f2
treee01b0e6f218771b0cf236eee36cda682c6f3cae5
parent98acf57e48eefefa2988369df2f116c8706fde66
Convert ASN1_STRING_type_new() to calloc().

Rather than using malloc() and then initialising all struct members, use
calloc() and only initialise the single non-zero value member.

ok schwarze@ tb@
lib/libcrypto/asn1/asn1_lib.c