Make sure that cert is never NULL
[openssl.git] / ssl / d1_srvr.c
index 24361ae5df45184a910fe7af82c57e779043f406..b89c36976825a490db431b110cfaf42278104d33 100644 (file)
@@ -199,10 +199,6 @@ int dtls1_accept(SSL *s)
              s->in_handshake, NULL);
 #endif
 
-    if (s->cert == NULL) {
-        SSLerr(SSL_F_DTLS1_ACCEPT, SSL_R_NO_CERTIFICATE_SET);
-        return (-1);
-    }
 #ifndef OPENSSL_NO_HEARTBEATS
     /*
      * If we're awaiting a HeartbeatResponse, pretend we already got and