From a76288b99aae391127a4f0ff3dc065b8c64efa9b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 16 Jun 2004 09:05:22 +0000 Subject: Alexander Krasnostavsky fixed a flaw in the 3rd party transfer code that didn't properly check return code. --- lib/transfer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') 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; } -- cgit v1.2.3