mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
fix: should exit when ssl_session_new fail
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
@@ -543,6 +543,7 @@ static void on_net_connected(int sock, void *arg)
|
||||
if (!rtty->ssl) {
|
||||
log_err("SSL session create fail\n");
|
||||
ev_break(rtty->loop, EVBREAK_ALL);
|
||||
return;
|
||||
}
|
||||
ssl_set_server_name(rtty->ssl, rtty->host);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user