Skip to content

Linux + iPhone Continuity / iMessage / SMS

Potential fix for pull request finding

sfreeman4225d8ff499384c
diff --git a/src/core/src/net.cpp b/src/core/src/net.cpp
index 7aecb95..b594756 100644
--- a/src/core/src/net.cpp
+++ b/src/core/src/net.cpp
@@ -1336,7 +1336,8 @@ namespace tether {
if (reason.empty())
reason = (err == SSL_ERROR_ZERO_RETURN || (err == SSL_ERROR_SYSCALL && ret == 0))
? "peer closed connection during handshake"
- : "ssl error " + std::to_string(err);
+ : (err == SSL_ERROR_SYSCALL ? std::string("syscall error: ") + std::strerror(errno)
+ : "ssl error " + std::to_string(err));
debug::log(ERR,
"TcpServer: TLS handshake failed for {} (fd: {}): {}",
client_info_[client_fd].address,