aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-11-05 23:30:12 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-11-05 23:30:12 +0000
commit98a5fdaf29e4c84bf02f0fe8c8865bf85b896b43 (patch)
treee940ca8b1ff568ee70589f9f816dd590bc775189 /lib/url.c
parent1ea05be46d5901e449a79f95f9df31ff67c43fe1 (diff)
url.c: Very small amount of policing
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 9526cdcc1..35b8a6c6e 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -5562,11 +5562,11 @@ CURLcode Curl_setup_conn(struct connectdata *conn,
if(CURL_SOCKET_BAD == conn->sock[FIRSTSOCKET]) {
conn->bits.tcpconnect[FIRSTSOCKET] = FALSE;
result = Curl_connecthost(conn, conn->dns_entry);
- if(CURLE_OK != result)
+ if(result)
return result;
}
else {
- Curl_pgrsTime(data, TIMER_CONNECT); /* we're connected already */
+ Curl_pgrsTime(data, TIMER_CONNECT); /* we're connected already */
Curl_pgrsTime(data, TIMER_APPCONNECT); /* we're connected already */
conn->bits.tcpconnect[FIRSTSOCKET] = TRUE;
*protocol_done = TRUE;