提交 41bf2501 编写于 作者: M Matt Caswell

Fixed memory leak in the event of a failure of BUF_MEM_grow

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 76e65090
...@@ -294,6 +294,7 @@ int ssl3_accept(SSL *s) ...@@ -294,6 +294,7 @@ int ssl3_accept(SSL *s)
} }
if (!BUF_MEM_grow(buf,SSL3_RT_MAX_PLAIN_LENGTH)) if (!BUF_MEM_grow(buf,SSL3_RT_MAX_PLAIN_LENGTH))
{ {
BUF_MEM_free(buf);
ret= -1; ret= -1;
goto end; goto end;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册