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

merge from 2.0

This commit is contained in:
winlin 2016-09-05 09:39:20 +08:00
commit 815f2491a4
3 changed files with 11 additions and 2 deletions

View file

@ -151,6 +151,11 @@ namespace _srs_internal
}
SrsDH::~SrsDH()
{
close();
}
void SrsDH::close()
{
if (pdh != NULL) {
if (pdh->p != NULL) {
@ -249,7 +254,9 @@ namespace _srs_internal
{
int ret = ERROR_SUCCESS;
int32_t bits_count = 1024;
int32_t bits_count = 1024;
close();
//1. Create the DH
if ((pdh = DH_new()) == NULL) {