修复内存泄漏问题

This commit is contained in:
崔一鸣
2018-09-14 21:23:08 +08:00
parent 254f3fbbd1
commit e28fd98331
3 changed files with 5 additions and 1 deletions

View File

@@ -2033,7 +2033,7 @@ struct ssl_chello* ssl_chello_parse(const unsigned char* buff, size_t buff_len,
_chello->max_version.major = buff[pos];
_chello->max_version.minor = buff[pos+1];
_chello->max_version.ossl_format=(uint16_t)_chello->max_version.major<<8|_chello->max_version.minor;
pos += 34;
/* Session ID */
if (pos + 1 > buff_len)