summaryrefslogtreecommitdiff
path: root/modules/mbedtls
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-27 13:56:58 +0200
committerGitHub <noreply@github.com>2022-04-27 13:56:58 +0200
commit6e6fe2b025cf2d2e6ecbc2d536a6ed614f6486c6 (patch)
tree5347db9b0a50bb4a39d453ca46eefc9eea12f180 /modules/mbedtls
parent17374944796a9338a2225473c9af693b4b578e18 (diff)
parent331f1662df41b4e7afff30d2fe4019a413499c1c (diff)
Merge pull request #59582 from Faless/net/4.x_tcp_explicit_poll
Diffstat (limited to 'modules/mbedtls')
-rw-r--r--modules/mbedtls/packet_peer_mbed_dtls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mbedtls/packet_peer_mbed_dtls.cpp b/modules/mbedtls/packet_peer_mbed_dtls.cpp
index ddc2e945a7..1296a4587c 100644
--- a/modules/mbedtls/packet_peer_mbed_dtls.cpp
+++ b/modules/mbedtls/packet_peer_mbed_dtls.cpp
@@ -115,7 +115,7 @@ Error PacketPeerMbedDTLS::_do_handshake() {
}
Error PacketPeerMbedDTLS::connect_to_peer(Ref<PacketPeerUDP> p_base, bool p_validate_certs, const String &p_for_hostname, Ref<X509Certificate> p_ca_certs) {
- ERR_FAIL_COND_V(!p_base.is_valid() || !p_base->is_connected_to_host(), ERR_INVALID_PARAMETER);
+ ERR_FAIL_COND_V(!p_base.is_valid() || !p_base->is_socket_connected(), ERR_INVALID_PARAMETER);
base = p_base;
int ret = 0;