summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/ameth_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/ameth_lib.c')
-rw-r--r--src/lib/libcrypto/asn1/ameth_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c
index e9f73cb3a6..e88496cc9d 100644
--- a/src/lib/libcrypto/asn1/ameth_lib.c
+++ b/src/lib/libcrypto/asn1/ameth_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ameth_lib.c,v 1.13 2014/07/11 13:41:59 miod Exp $ */ 1/* $OpenBSD: ameth_lib.c,v 1.14 2014/07/13 16:03:09 beck Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -294,14 +294,14 @@ EVP_PKEY_asn1_new(int id, int flags, const char *pem_str, const char *info)
294 ameth->pkey_flags = flags | ASN1_PKEY_DYNAMIC; 294 ameth->pkey_flags = flags | ASN1_PKEY_DYNAMIC;
295 295
296 if (info) { 296 if (info) {
297 ameth->info = BUF_strdup(info); 297 ameth->info = strdup(info);
298 if (!ameth->info) 298 if (!ameth->info)
299 goto err; 299 goto err;
300 } else 300 } else
301 ameth->info = NULL; 301 ameth->info = NULL;
302 302
303 if (pem_str) { 303 if (pem_str) {
304 ameth->pem_str = BUF_strdup(pem_str); 304 ameth->pem_str = strdup(pem_str);
305 if (!ameth->pem_str) 305 if (!ameth->pem_str)
306 goto err; 306 goto err;
307 } else 307 } else