From e90d004e007272df4dcc65a35138fe639635e5ab Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Wed, 1 Jun 2016 20:05:59 -0400 Subject: [PATCH] Remove impossible condition. ssl->cert is never NULL. It gets created in SSL_new unconditionally. Change-Id: I5c54c9c73e281e61a554820d61421226d763d33a Reviewed-on: https://boringssl-review.googlesource.com/8125 Reviewed-by: Steven Valdez Reviewed-by: David Benjamin --- ssl/s3_srvr.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 50007eb4..a28e6cd1 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -192,11 +192,6 @@ int ssl3_accept(SSL *ssl) { cb = ssl->ctx->info_callback; } - if (ssl->cert == NULL) { - OPENSSL_PUT_ERROR(SSL, SSL_R_NO_CERTIFICATE_SET); - return -1; - } - for (;;) { state = ssl->state;