Resolve a stack set-up race condition (if the list of compression
authorBodo Möller <bodo@openssl.org>
Fri, 2 Dec 2011 12:52:00 +0000 (12:52 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 2 Dec 2011 12:52:00 +0000 (12:52 +0000)
methods isn't presorted, it will be sorted on first read).

Submitted by: Adam Langley

CHANGES
ssl/ssl_ciph.c

diff --git a/CHANGES b/CHANGES
index ab83fa21d2b8853c35beb6598b60f636c09f0116..a453a7bf8dad12f35605633eee6cb33db2535486 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 
  Changes between 1.0.0e and 1.0.0f [xx XXX xxxx]
 
+  *) Fix ssl_ciph.c set-up race.
+     [Adam Langley (Google)]
+
   *) Fix spurious failures in ecdsatest.c.
      [Emilia Käsper (Google)]
 
   
  Changes between 0.9.8r and 0.9.8s [xx XXX xxxx]
 
+  *) Fix ssl_ciph.c set-up race.
+     [Adam Langley (Google)]
+
   *) Fix spurious failures in ecdsatest.c.
      [Emilia Käsper (Google)]
 
index c03f02974859aa696921c31843b108dcc36359e4..ac643c928c390c60337e1d4d2ad53cb4cad59ce6 100644 (file)
@@ -470,6 +470,7 @@ static void load_builtin_compressions(void)
                                                sk_SSL_COMP_push(ssl_comp_methods,comp);
                                                }
                                        }
+                                       sk_SSL_COMP_sort(ssl_comp_methods);
                                }
                        MemCheck_on();
                        }