Ensure that both the MD and key have been initialised before attempting to
[openssl.git] / ssl / d1_srvr.c
index b89c36976825a490db431b110cfaf42278104d33..b55af35c75b35278cdbb8ed5d51253d01477574a 100644 (file)
@@ -484,7 +484,7 @@ int dtls1_accept(SSL *s)
 #ifndef OPENSSL_NO_PSK
                 || ((alg_k & SSL_kPSK) && s->ctx->psk_identity_hint)
 #endif
-                || (alg_k & (SSL_kDHE | SSL_kDHr | SSL_kDHd))
+                || (alg_k & SSL_kDHE)
                 || (alg_k & SSL_kECDHE)
                 || ((alg_k & SSL_kRSA)
                     && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL