mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
Alexander Krasnostavsky fixed a flaw in the 3rd party transfer code that
didn't properly check return code.
This commit is contained in:
parent
557e95c0a3
commit
a76288b99a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user