summaryrefslogtreecommitdiffstats
path: root/ssl/ssltest.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-10-02 10:41:50 +0000
committerRichard Levitte <levitte@openssl.org>2003-10-02 10:41:50 +0000
commitc9d3957986400035ac12170e735fa9fcf91c99d7 (patch)
treee87ecee5cb7e8da5ef35c0c6a1ac641b2fd4479c /ssl/ssltest.c
parent05e962ddf84bfdec03c2a401afb714712ead4c83 (diff)
Check for errors from SSL_COMP_add_compression_method().
Notified by Andrew Marlow <AMARLOW1@bloomberg.net>
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r--ssl/ssltest.c9
1 files changed, 8 insertions, 1 deletions
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,