Commit 9f495243 authored by Richard Levitte's avatar Richard Levitte
Browse files

It's completely unnecessary to add a compression algorithm that is

really undefined.
Spotted by Jeffrey Altman <jaltman@columbia.edu>
parent 6a2347ee
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1081,6 +1081,9 @@ int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm)
	SSL_COMP *comp;
	STACK_OF(SSL_COMP) *sk;

        if (cm == NULL || cm->type == NID_undef)
                return 1;

	MemCheck_off();
	comp=(SSL_COMP *)OPENSSL_malloc(sizeof(SSL_COMP));
	comp->id=id;