fix: ssl: No handshake during reconnecting

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2021-05-31 16:30:32 +08:00
parent 7a092580ea
commit 550481f955
+3 -1
View File
@@ -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) {