diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-16 09:05:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-16 09:05:22 +0000 |
commit | a76288b99aae391127a4f0ff3dc065b8c64efa9b (patch) | |
tree | b9f599dbdca47d035c3d80a896f52ad95927d4b8 /lib | |
parent | 557e95c0a337a9ae6ea782b5b042a9a94a0743a7 (diff) |
Alexander Krasnostavsky fixed a flaw in the 3rd party transfer code that
didn't properly check return code.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 0a4e62543..9ce78c552 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -2158,8 +2158,10 @@ CURLcode Curl_pretransfersec(struct connectdata *conn) /* secondary connection */ status = Curl_connect_host(data, &sec_conn); - sec_conn->data = data; - conn->sec_conn = sec_conn; + if(CURLE_OK == status) { + sec_conn->data = data; + conn->sec_conn = sec_conn; + } return status; } |