提交 1b322bd9 authored 作者: Michael Jerris's avatar Michael Jerris

FS-7425: #resolve dhparams might not be present, causing a seg. Make sure they…

FS-7425: #resolve dhparams might not be present, causing a seg.  Make sure they are there before we apply them
上级 d3bac671
......@@ -3127,8 +3127,10 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_dtls(switch_rtp_t *rtp_session, d
bio = BIO_new_file(dtls->pem, "r");
dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
BIO_free(bio);
SSL_CTX_set_tmp_dh(dtls->ssl_ctx, dh);
DH_free(dh);
if (dh) {
SSL_CTX_set_tmp_dh(dtls->ssl_ctx, dh);
DH_free(dh);
}
SSL_CTX_set_mode(dtls->ssl_ctx, SSL_MODE_AUTO_RETRY);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论