diff options
Diffstat (limited to 'crypto/asn1/p8_pkey.c')
-rw-r--r-- | crypto/asn1/p8_pkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/p8_pkey.c b/crypto/asn1/p8_pkey.c index ebee6b50cd..c08aa85267 100644 --- a/crypto/asn1/p8_pkey.c +++ b/crypto/asn1/p8_pkey.c @@ -57,7 +57,7 @@ int PKCS8_pkey_get0(ASN1_OBJECT **ppkalg, if (ppkalg) *ppkalg = p8->pkeyalg->algorithm; if (pk) { - *pk = ASN1_STRING_data(p8->pkey); + *pk = ASN1_STRING_get0_data(p8->pkey); *ppklen = ASN1_STRING_length(p8->pkey); } if (pa) |