Skip to content

Commit

Permalink
fix: ssl: No handshake during reconnecting
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
zhaojh329 committed May 31, 2021
1 parent 7a09258 commit 550481f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rtty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 550481f

Please sign in to comment.