summaryrefslogtreecommitdiffstats
path: root/crypto/x509
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-11-23 13:30:04 -0500
committerRich Salz <rsalz@openssl.org>2015-11-23 13:51:23 -0500
commitcc99bfa76bd25e40672841c78db9cc171be5488b (patch)
treea6b7cfeb46abbd525e2597d70f820450b5de127e /crypto/x509
parente44380a990a3edf1cd0c190c6459c8c026d53646 (diff)
Fix a few missed "if (!ptr)" cleanups
And a scalar !x --> x==0 test Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'crypto/x509')
-rw-r--r--crypto/x509/x_x509.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/x509/x_x509.c b/crypto/x509/x_x509.c
index ad2309cccf..cab17ddee6 100644
--- a/crypto/x509/x_x509.c
+++ b/crypto/x509/x_x509.c
@@ -175,12 +175,11 @@ X509 *d2i_X509_AUX(X509 **a, const unsigned char **pp, long length)
/* Save start position */
q = *pp;
- if (!a || *a == NULL) {
+ if (a == NULL || *a == NULL)
freeret = 1;
- }
ret = d2i_X509(a, &q, length);
/* If certificate unreadable then forget it */
- if (!ret)
+ if (ret == NULL)
return NULL;
/* update length */
length -= q - *pp;