提交 f82ab534 编写于 作者: R Richard Levitte

Check for errors from SSL_COMP_add_compression_method().

Notified by Andrew Marlow <AMARLOW1@bloomberg.net>
上级 f6e8c19e
......@@ -594,7 +594,14 @@ bad:
if (cm != NULL)
{
if (cm->type != NID_undef)
SSL_COMP_add_compression_method(comp, cm);
{
if (SSL_COMP_add_compression_method(comp, cm) != 0)
{
fprintf(stderr,
"Failed to add compression method\n");
ERR_print_errors_fp(stderr);
}
}
else
{
fprintf(stderr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册