From: Richard Levitte Date: Thu, 2 Oct 2003 10:41:48 +0000 (+0000) Subject: Check for errors from SSL_COMP_add_compression_method(). X-Git-Tag: BEN_FIPS_TEST_4^2~11^2~85 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f82ab534c68e49b8014a2e220dd25d3ca177612a;p=oweals%2Fopenssl.git Check for errors from SSL_COMP_add_compression_method(). Notified by Andrew Marlow --- diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 7bb4152000..0c684604c7 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -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,