Quellcode durchsuchen

Merge branch 'tor-github/pr/902' into maint-0.4.0

George Kadianakis vor 5 Jahren
Ursprung
Commit
217db9efe1
2 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
  1. 8 0
      changes/bug30021
  2. 1 1
      src/lib/tls/tortls_openssl.c

+ 8 - 0
changes/bug30021

@@ -0,0 +1,8 @@
+  o Minor bugfixes (TLS protocol, integration tests):
+    - When classifying a client's selection of TLS ciphers, if the client
+      ciphers are not yet available, do not cache the result. Previously,
+      we had cached the unavailability of the cipher list and never looked
+      again, which in turn led us to assume that the client only supported
+      the ancient V1 link protocol.  This, in turn, was causing Stem
+      integration tests to stall in some cases.
+      Fixes bug 30021; bugfix on 0.2.4.8-alpha.

+ 1 - 1
src/lib/tls/tortls_openssl.c

@@ -905,7 +905,7 @@ tor_tls_classify_client_ciphers(const SSL *ssl,
     smartlist_free(elts);
   }
  done:
-  if (tor_tls)
+  if (tor_tls && peer_ciphers)
     return tor_tls->client_cipher_list_type = res;
 
   return res;