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>
This commit is contained in:
parent
f04c2e9878
commit
813fc01ff1
@ -2873,11 +2873,6 @@ void SSL_CTX_set_grease_enabled(SSL_CTX *ctx, int enabled) {
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user