summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2011-12-02 12:50:44 +0000
committerBodo Möller <bodo@openssl.org>2011-12-02 12:50:44 +0000
commit740da44f2094d40b7b6580a6cb61d072d873550c (patch)
tree3cfaa456f25756ba28319bf58bcd3bea9208553a /ssl
parent72033fde7be9e6f215078d63a9630872f95cd9c8 (diff)
Resolve a stack set-up race condition (if the list of compression
methods isn't presorted, it will be sorted on first read). Submitted by: Adam Langley
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_ciph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c
index a34680ee85..a54c06ffb7 100644
--- a/ssl/ssl_ciph.c
+++ b/ssl/ssl_ciph.c
@@ -303,6 +303,7 @@ static void load_builtin_compressions(void)
sk_SSL_COMP_push(ssl_comp_methods,comp);
}
}
+ sk_SSL_COMP_sort(ssl_comp_methods);
}
MemCheck_on();
}