fix: should exit when ssl_session_new fail

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2021-09-10 08:03:45 +00:00
parent 0a263bdf02
commit d4c7bbd9ca

View File

@@ -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