mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
OpenSSL: fix yet another mistake while encapsulating SSL backend data
Another mistake in my manual fixups of the largely mechanical search-and-replace ("connssl->" -> "BACKEND->"), just like the previous commit concerning HTTPS proxies (and hence not caught during my earlier testing). Fixes #1855 Closes #1871 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
dde4f5c81a
commit
f4a623825b
@ -3366,10 +3366,12 @@ static bool Curl_ossl_data_pending(const struct connectdata *conn,
|
|||||||
int connindex)
|
int connindex)
|
||||||
{
|
{
|
||||||
const struct ssl_connect_data *connssl = &conn->ssl[connindex];
|
const struct ssl_connect_data *connssl = &conn->ssl[connindex];
|
||||||
|
const struct ssl_connect_data *proxyssl = &conn->proxy_ssl[connindex];
|
||||||
if(BACKEND->handle)
|
if(BACKEND->handle)
|
||||||
/* SSL is in use */
|
/* SSL is in use */
|
||||||
return (0 != SSL_pending(BACKEND->handle) ||
|
return (0 != SSL_pending(BACKEND->handle) ||
|
||||||
(BACKEND->handle && 0 != SSL_pending(BACKEND->handle))) ?
|
(proxyssl->backend->handle &&
|
||||||
|
0 != SSL_pending(proxyssl->backend->handle))) ?
|
||||||
TRUE : FALSE;
|
TRUE : FALSE;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user