Commit f82ab534 authored by Richard Levitte's avatar Richard Levitte
Browse files

Check for errors from SSL_COMP_add_compression_method().

Notified by Andrew Marlow <AMARLOW1@bloomberg.net>
parent f6e8c19e
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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,