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 <svaldez@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
This commit is contained in:
David Benjamin 2016-06-01 20:05:59 -04:00
parent 83042a8292
commit e90d004e00

View File

@ -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;