mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
fix: ssl: No handshake during reconnecting
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
+3
-1
@@ -240,8 +240,10 @@ void rtty_exit(struct rtty *rtty)
|
||||
del_tty(rtty->ttys[i]);
|
||||
|
||||
#ifdef SSL_SUPPORT
|
||||
if (rtty->ssl)
|
||||
if (rtty->ssl) {
|
||||
ssl_session_free(rtty->ssl);
|
||||
rtty->ssl_negotiated = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (rtty->sock > 0) {
|
||||
|
||||
Reference in New Issue
Block a user