From: Steve Holme Date: Sun, 20 Mar 2016 17:35:31 +0000 (+0000) Subject: openssl: Fixed compilation warning when /Wall enabled X-Git-Tag: curl-7_48_0~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89f397d7eb04c1baa7f3e04fcf7128ff1b5c7f2a;p=curl openssl: Fixed compilation warning when /Wall enabled warning C4706: assignment within conditional expression --- 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,