Check for errors from SSL_COMP_add_compression_method().

Notified by Andrew Marlow <AMARLOW1@bloomberg.net>
This commit is contained in:
Richard Levitte 2003-10-02 10:41:50 +00:00
parent 05e962ddf8
commit c9d3957986

View File

@ -564,7 +564,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,