Convert ASN1_OBJECT_new() to calloc().
authorjsing <jsing@openbsd.org>
Fri, 3 Dec 2021 16:58:11 +0000 (16:58 +0000)
committerjsing <jsing@openbsd.org>
Fri, 3 Dec 2021 16:58:11 +0000 (16:58 +0000)
commit98acf57e48eefefa2988369df2f116c8706fde66
treefead0375b2c22c79615835941ef6527e3d6cb957
parentc983a0afb636a04462d8cd37c4566bcc8fb53991
Convert ASN1_OBJECT_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/a_object.c