Check for errors from SSL_COMP_add_compression_method().
authorRichard Levitte <levitte@openssl.org>
Thu, 2 Oct 2003 10:41:48 +0000 (10:41 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 2 Oct 2003 10:41:48 +0000 (10:41 +0000)
Notified by Andrew Marlow <AMARLOW1@bloomberg.net>

ssl/ssltest.c

index 7bb4152..0c68460 100644 (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,