Make sure that cert is never NULL

Also removes for it being NULL

Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
Kurt Roeckx
2015-03-18 19:02:50 +01:00
parent 06e6aa47de
commit 24a0d3933d
3 changed files with 19 additions and 36 deletions

View File

@@ -231,10 +231,6 @@ int ssl3_accept(SSL *s)
return -1;
}
if (s->cert == NULL) {
SSLerr(SSL_F_SSL3_ACCEPT, SSL_R_NO_CERTIFICATE_SET);
return (-1);
}
#ifndef OPENSSL_NO_HEARTBEATS
/*
* If we're awaiting a HeartbeatResponse, pretend we already got and