1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: delete SrsDTLS single instance

This commit is contained in:
jinxue.cgh 2020-06-24 20:21:36 +08:00 committed by winlin
parent f3f9636d80
commit 9addade2b4
5 changed files with 30 additions and 44 deletions

View file

@ -150,7 +150,7 @@ srs_error_t SrsRtcDtls::initialize(SrsRequest* r)
srs_error_t err = srs_success;
// TODO: FIXME: Leak for SSL_CTX* return by build_dtls_ctx.
if ((dtls = SSL_new(SrsDtls::instance()->build_dtls_ctx())) == NULL) {
if ((dtls = SSL_new(SrsDtls::build_dtls_ctx())) == NULL) {
return srs_error_new(ERROR_OpenSslCreateSSL, "SSL_new dtls");
}