]> granicus.if.org Git - curl/commitdiff
re-use existing variable instead of declaring a new local one
authorDaniel Stenberg <daniel@haxx.se>
Sat, 5 Jul 2003 13:27:02 +0000 (13:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 5 Jul 2003 13:27:02 +0000 (13:27 +0000)
lib/ssluse.c

index 8e8f5eeb2c84dcd582e513b60fdd33d569d3b793..02638e5347b322adb260e7d5c1f6cc84ae1114e6 100644 (file)
@@ -815,7 +815,7 @@ Curl_SSLConnect(struct connectdata *conn)
     }
   }
 
-  if(data->set.ssl.verifypeer){
+  if(data->set.ssl.verifypeer) {
     SSL_CTX_set_verify(conn->ssl.ctx,
                        SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT|
                        SSL_VERIFY_CLIENT_ONCE,
@@ -833,11 +833,11 @@ Curl_SSLConnect(struct connectdata *conn)
 
   /* give application a chance to interfere with SSL set up. */
   if (data->set.ssl.fsslctx) {
-    CURLcode callbackresult = (*data->set.ssl.fsslctx)(data, conn->ssl.ctx,
-                                                       data->set.ssl.fsslctxp);
-    if (callbackresult != CURLE_OK) {
+    retcode = (*data->set.ssl.fsslctx)(data, conn->ssl.ctx,
+                                       data->set.ssl.fsslctxp);
+    if (retcode) {
       failf(data,"error signaled by ssl ctx callback");
-      return callbackresult;
+      return retcode;
     }
   }