commit | 9f49524331938282722d81d887a9dcb11e711b82 | [log] [tgz] |
---|---|---|
author | Richard Levitte <levitte@openssl.org> | Mon Dec 04 17:17:03 2000 +0000 |
committer | Richard Levitte <levitte@openssl.org> | Mon Dec 04 17:17:03 2000 +0000 |
tree | a793c502ce5d03a99e33035ae746a9d0d7cfe1c4 | |
parent | 6a2347ee45927c595847e797778af2031cba8e0d [diff] |
It's completely unnecessary to add a compression algorithm that is really undefined. Spotted by Jeffrey Altman <jaltman@columbia.edu>
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index e01bb34..a196d5e 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c
@@ -1081,6 +1081,9 @@ 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;