diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/ameth_lib.c')
-rw-r--r-- | src/lib/libcrypto/asn1/ameth_lib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c index 18957c669e..9a8b6cc222 100644 --- a/src/lib/libcrypto/asn1/ameth_lib.c +++ b/src/lib/libcrypto/asn1/ameth_lib.c | |||
@@ -301,6 +301,8 @@ EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id, int flags, | |||
301 | if (!ameth->info) | 301 | if (!ameth->info) |
302 | goto err; | 302 | goto err; |
303 | } | 303 | } |
304 | else | ||
305 | ameth->info = NULL; | ||
304 | 306 | ||
305 | if (pem_str) | 307 | if (pem_str) |
306 | { | 308 | { |
@@ -308,6 +310,8 @@ EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id, int flags, | |||
308 | if (!ameth->pem_str) | 310 | if (!ameth->pem_str) |
309 | goto err; | 311 | goto err; |
310 | } | 312 | } |
313 | else | ||
314 | ameth->pem_str = NULL; | ||
311 | 315 | ||
312 | ameth->pub_decode = 0; | 316 | ameth->pub_decode = 0; |
313 | ameth->pub_encode = 0; | 317 | ameth->pub_encode = 0; |