Check for errors from SSL_COMP_add_compression_method().
Notified by Andrew Marlow <AMARLOW1@bloomberg.net>
This commit is contained in:
parent
f6e8c19ed1
commit
f82ab534c6
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue