summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pem/pem_pk8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/pem/pem_pk8.c')
-rw-r--r--src/lib/libcrypto/pem/pem_pk8.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/pem/pem_pk8.c b/src/lib/libcrypto/pem/pem_pk8.c
index dafbd13814..8d7ac4a954 100644
--- a/src/lib/libcrypto/pem/pem_pk8.c
+++ b/src/lib/libcrypto/pem/pem_pk8.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pem_pk8.c,v 1.7 2014/07/11 08:44:49 jsing Exp $ */ 1/* $OpenBSD: pem_pk8.c,v 1.8 2014/07/12 16:03:37 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -184,8 +184,7 @@ d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u)
184 if (!ret) 184 if (!ret)
185 return NULL; 185 return NULL;
186 if (x) { 186 if (x) {
187 if (*x) 187 EVP_PKEY_free(*x);
188 EVP_PKEY_free(*x);
189 *x = ret; 188 *x = ret;
190 } 189 }
191 return ret; 190 return ret;