diff options
author | Richard Levitte <levitte@openssl.org> | 2000-11-30 12:19:54 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-11-30 12:19:54 +0000 |
commit | 058123afb6e565446d6956e9c0c89f1b7a023467 (patch) | |
tree | 763843681841cda4775b745557d8fdd9bf61df39 /ssl/ssl_ciph.c | |
parent | a4614bf06da0d7b85217ead2f569dc49d1e3f686 (diff) |
Turn off memory checking when loading new compression algorithms.
Diffstat (limited to 'ssl/ssl_ciph.c')
-rw-r--r-- | ssl/ssl_ciph.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index f63163f26c..52a2c7f3d3 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -1053,6 +1053,7 @@ int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm) SSL_COMP *comp; STACK_OF(SSL_COMP) *sk; + MemCheck_off(); comp=(SSL_COMP *)OPENSSL_malloc(sizeof(SSL_COMP)); comp->id=id; comp->method=cm; @@ -1062,10 +1063,13 @@ int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm) sk=ssl_comp_methods; if ((sk == NULL) || !sk_SSL_COMP_push(sk,comp)) { + MemCheck_on(); SSLerr(SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD,ERR_R_MALLOC_FAILURE); return(0); } else + { + MemCheck_on(); return(1); + } } - |