X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fasn1%2Fd2i_pu.c;h=189cfddf1e4aa0b63b338b06b5bb5f3fa04d5ea1;hp=33542dd122ade855bf0d99e2abab73ae6782f757;hb=c5ba2d990420e1778ca4a90bf882e0f806404af0;hpb=33b188a8e82df57208ec8263c263f8b6f47e8255 diff --git a/crypto/asn1/d2i_pu.c b/crypto/asn1/d2i_pu.c index 33542dd122..189cfddf1e 100644 --- a/crypto/asn1/d2i_pu.c +++ b/crypto/asn1/d2i_pu.c @@ -130,7 +130,7 @@ EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, (*a) = ret; return (ret); err: - if ((ret != NULL) && ((a == NULL) || (*a != ret))) + if (a == NULL || *a != ret) EVP_PKEY_free(ret); return (NULL); }