X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fasn1%2Fa_bitstr.c;h=4078be4c4b1cf142a6f550b802f481873af4c4a7;hp=5a5cc23cb13fd5f6f74f9c823bcfc249dba21d67;hb=0dfb9398bb6493d5a56216e0c7039cb3f9fc88c6;hpb=7c82e339a677f8546e1456c7a8f6788598a9de43 diff --git a/crypto/asn1/a_bitstr.c b/crypto/asn1/a_bitstr.c index 5a5cc23cb1..4078be4c4b 100644 --- a/crypto/asn1/a_bitstr.c +++ b/crypto/asn1/a_bitstr.c @@ -177,7 +177,7 @@ ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, return (ret); err: ASN1err(ASN1_F_C2I_ASN1_BIT_STRING, i); - if ((ret != NULL) && ((a == NULL) || (*a != ret))) + if ((a == NULL) || (*a != ret)) ASN1_BIT_STRING_free(ret); return (NULL); }