summaryrefslogtreecommitdiffstats
path: root/crypto/ocsp/v3_ocsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/ocsp/v3_ocsp.c')
-rw-r--r--crypto/ocsp/v3_ocsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ocsp/v3_ocsp.c b/crypto/ocsp/v3_ocsp.c
index 655811671a..7e502d7962 100644
--- a/crypto/ocsp/v3_ocsp.c
+++ b/crypto/ocsp/v3_ocsp.c
@@ -247,7 +247,7 @@ static void *d2i_ocsp_nonce(void *a, const unsigned char **pp, long length)
return os;
err:
- if (os && (!pos || (*pos != os)))
+ if ((pos == NULL) || (*pos != os))
ASN1_OCTET_STRING_free(os);
OCSPerr(OCSP_F_D2I_OCSP_NONCE, ERR_R_MALLOC_FAILURE);
return NULL;