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:48 +00:00
parent f6e8c19ed1
commit f82ab534c6

View file

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