diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-03-12 17:30:29 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-03-12 17:30:29 +0000 |
commit | 78625cac82821f5eec0728a4abc1452dc779b787 (patch) | |
tree | 7a575b32b11551f5a73629780413ea53bd1c2fd6 /ssl | |
parent | c28a9165f2347dde0f407900e95d137f6bcb661a (diff) |
Submitted by: Victor Duchovni <Victor.Duchovni@morganstanley.com>
Reviewed by: steve@openssl.org
Check return value of sk_SSL_COMP_find() properly.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_ciph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index 4826df8002..080b00a501 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -1715,7 +1715,7 @@ int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm) comp->method=cm; load_builtin_compressions(); if (ssl_comp_methods - && !sk_SSL_COMP_find(ssl_comp_methods,comp)) + && sk_SSL_COMP_find(ssl_comp_methods,comp) >= 0) { OPENSSL_free(comp); MemCheck_on(); |