]> granicus.if.org Git - curl/commitdiff
Uses the Curl_SSLConnect() according to the new return type
authorDaniel Stenberg <daniel@haxx.se>
Sat, 12 May 2001 09:30:42 +0000 (09:30 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 12 May 2001 09:30:42 +0000 (09:30 +0000)
lib/ftp.c
lib/http.c

index a2c8455c7104693d1c4bdb979c1cbbad624c03cf..0edcd05f086c520d27a12861e7ccbc44036ddced 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -481,8 +481,9 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
   if(conn->protocol & PROT_FTPS) {
     /* FTPS is simply ftp with SSL for the control channel */
     /* now, perform the SSL initialization for this socket */
-    if(Curl_SSLConnect(conn))
-      return CURLE_SSL_CONNECT_ERROR;
+    result = Curl_SSLConnect(conn);
+    if(result)
+      return result;
   }
 
 
index 4984d684dde886ea4ffd9d4da62cb22c946a04f5..3aba7aaddc29ef873bd744d7cadf9be9dd663a91 100644 (file)
@@ -336,8 +336,9 @@ CURLcode Curl_http_connect(struct connectdata *conn)
     }
 
     /* now, perform the SSL initialization for this socket */
-    if(Curl_SSLConnect(conn))
-      return CURLE_SSL_CONNECT_ERROR;
+    result = Curl_SSLConnect(conn);
+    if(result)
+      return result;
   }
 
   if(conn->bits.user_passwd && !data->bits.this_is_a_follow) {