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:
parent
6a2347ee45
commit
9f49524331
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue