From: Richard Levitte Date: Thu, 2 Oct 2003 10:41:50 +0000 (+0000) Subject: Check for errors from SSL_COMP_add_compression_method(). X-Git-Tag: OpenSSL_0_9_7d~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9d3957986400035ac12170e735fa9fcf91c99d7;p=openssl Check for errors from SSL_COMP_add_compression_method(). Notified by Andrew Marlow --- diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 42289c255b..28095148e7 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -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,