aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-11-13 08:34:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-11-13 08:34:24 +0000
commitc2479ccb7a73db4b8c3071ed4cc92e27d30dabf2 (patch)
tree7521b9dc33738b89e69bda157480ca07288a2406
parentfc07eb45f4118524f6859102a00f5327081983b2 (diff)
my proxytunnel fix accidentally ruined the normal https connects
-rw-r--r--lib/http.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/http.c b/lib/http.c
index 6d1330c25..bb0c26e72 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -407,13 +407,13 @@ CURLcode Curl_http_connect(struct connectdata *conn)
conn->hostname, conn->remote_port);
if(CURLE_OK != result)
return result;
-
- if(conn->protocol & PROT_HTTPS) {
- /* now, perform the SSL initialization for this socket */
- result = Curl_SSLConnect(conn);
- if(result)
- return result;
- }
+ }
+
+ if(conn->protocol & PROT_HTTPS) {
+ /* now, perform the SSL initialization for this socket */
+ result = Curl_SSLConnect(conn);
+ if(result)
+ return result;
}
if(conn->bits.user_passwd && !data->state.this_is_a_follow) {