aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-24 01:27:00 +0000
committerYang Tse <yangsita@gmail.com>2008-10-24 01:27:00 +0000
commit6ea91af2f8f787f16b1bde88ae2293adcc961986 (patch)
treeb7a84538b1b6217e877a01a2b41367d330d2e712 /lib/http.c
parentb7674403995be67dae5017b9dd573cc7b4e65825 (diff)
fix compiler warning
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/http.c b/lib/http.c
index 068748c3c..b6609c818 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1836,13 +1836,10 @@ static CURLcode https_connecting(struct connectdata *conn, bool *done)
/* perform SSL initialization for this socket */
result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, done);
- if(result) {
+ if(result)
conn->bits.close = TRUE; /* a failed connection is marked for closure
to prevent (bad) re-use or similar */
- return result;
- }
-
- return CURLE_OK;
+ return result;
}
#ifdef USE_SSLEAY