aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-03-20 17:35:31 +0000
committerSteve Holme <steve_holme@hotmail.com>2016-03-20 17:35:31 +0000
commit89f397d7eb04c1baa7f3e04fcf7128ff1b5c7f2a (patch)
treee2bc004d27a2dd877dd1e74e53ed29a61181ec7d
parenteba1b3099fce4e81260285f7cc68caf664aa8ea8 (diff)
openssl: Fixed compilation warning when /Wall enabled
warning C4706: assignment within conditional expression
-rw-r--r--lib/vtls/openssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 540800d1f..cbf2d2123 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -1300,7 +1300,8 @@ static CURLcode verifystatus(struct connectdata *conn,
ASN1_GENERALIZEDTIME *rev, *thisupd, *nextupd;
- if(!(single = OCSP_resp_get0(br, i)))
+ single = OCSP_resp_get0(br, i);
+ if(!single)
continue;
cert_status = OCSP_single_get0_status(single, &crl_reason, &rev,