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

really undefined.
Spotted by Jeffrey Altman <jaltman@columbia.edu>
This commit is contained in:
Richard Levitte 2000-12-04 17:17:03 +00:00
parent 6a2347ee45
commit 9f49524331

View file

@ -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;