]> granicus.if.org Git - curl/commitdiff
openssl: Fixed compilation warning when /Wall enabled
authorSteve Holme <steve_holme@hotmail.com>
Sun, 20 Mar 2016 17:35:31 +0000 (17:35 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 20 Mar 2016 17:35:31 +0000 (17:35 +0000)
warning C4706: assignment within conditional expression

lib/vtls/openssl.c

index 540800d1f80af838eacf51a04557fcbd37cc6c3e..cbf2d212361000bee75f0e22a53e4b086da44cd3 100644 (file)
@@ -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,