Merge pull request #29546 from hpvb/fix-random-ssl-crash
Fix random ssl crash
This commit is contained in:
commit
629bc10d80
|
@ -346,6 +346,12 @@ Error HTTPClient::poll() {
|
||||||
} else {
|
} else {
|
||||||
// We are already handshaking, which means we can use your already active SSL connection
|
// We are already handshaking, which means we can use your already active SSL connection
|
||||||
ssl = static_cast<Ref<StreamPeerSSL> >(connection);
|
ssl = static_cast<Ref<StreamPeerSSL> >(connection);
|
||||||
|
if (ssl.is_null()) {
|
||||||
|
close();
|
||||||
|
status = STATUS_SSL_HANDSHAKE_ERROR;
|
||||||
|
return ERR_CANT_CONNECT;
|
||||||
|
}
|
||||||
|
|
||||||
ssl->poll(); // Try to finish the handshake
|
ssl->poll(); // Try to finish the handshake
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue