diff options
Diffstat (limited to 'crypto/asn1/x_pkey.c')
-rw-r--r-- | crypto/asn1/x_pkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/asn1/x_pkey.c b/crypto/asn1/x_pkey.c index 0665aab622..961b913dc9 100644 --- a/crypto/asn1/x_pkey.c +++ b/crypto/asn1/x_pkey.c @@ -70,11 +70,12 @@ X509_PKEY *X509_PKEY_new(void) if (!ret) goto err; + ret->references = 1; ret->enc_algor = X509_ALGOR_new(); ret->enc_pkey = ASN1_OCTET_STRING_new(); if (!ret->enc_algor || !ret->enc_pkey) goto err; - ret->references = 1; + return ret; err: X509_PKEY_free(ret); |