diff options
Diffstat (limited to 'deps/openssl/openssl/crypto/asn1/d2i_pu.c')
-rw-r--r-- | deps/openssl/openssl/crypto/asn1/d2i_pu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/openssl/openssl/crypto/asn1/d2i_pu.c b/deps/openssl/openssl/crypto/asn1/d2i_pu.c index dfdc1a6c96..9452e08a58 100644 --- a/deps/openssl/openssl/crypto/asn1/d2i_pu.c +++ b/deps/openssl/openssl/crypto/asn1/d2i_pu.c @@ -27,7 +27,7 @@ EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, if ((a == NULL) || (*a == NULL)) { if ((ret = EVP_PKEY_new()) == NULL) { ASN1err(ASN1_F_D2I_PUBLICKEY, ERR_R_EVP_LIB); - return (NULL); + return NULL; } } else ret = *a; @@ -66,13 +66,12 @@ EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, default: ASN1err(ASN1_F_D2I_PUBLICKEY, ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE); goto err; - /* break; */ } if (a != NULL) (*a) = ret; - return (ret); + return ret; err: if (a == NULL || *a != ret) EVP_PKEY_free(ret); - return (NULL); + return NULL; } |