Remove unreachable check. It is impossible to have an SSL* without a corresponding method. Change-Id: Icaf826a06aaaa2c7caf98b1e4a950f9c1d48e6bd Reviewed-on: https://boringssl-review.googlesource.com/12621 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 9eb8cd2..144c4bb 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c
@@ -2873,11 +2873,6 @@ } int SSL_clear(SSL *ssl) { - if (ssl->method == NULL) { - OPENSSL_PUT_ERROR(SSL, SSL_R_NO_METHOD_SPECIFIED); - return 0; - } - /* TODO(davidben): Some state on |ssl| is reset both in |SSL_new| and * |SSL_clear| because it is per-connection state rather than configuration * state. Per-connection state should be on |ssl->s3| and |ssl->d1| so it is