Don't filter TLS 1.3 ciphersuites by signing or key exchange algorithm
[openssl.git] / ssl / d1_lib.c
index 20970c3f024ef1a5c2e10a85d711f62105d2bccb..c1d160ecd4306997ac41e45534e9bcb87742c8b1 100644 (file)
@@ -432,6 +432,11 @@ int DTLSv1_listen(SSL *s, BIO_ADDR *client)
     BIO_ADDR *tmpclient = NULL;
     PACKET pkt, msgpkt, msgpayload, session, cookiepkt;
 
+    if (s->handshake_func == NULL) {
+        /* Not properly initialized yet */
+        SSL_set_accept_state(s);
+    }
+
     /* Ensure there is no state left over from a previous invocation */
     if (!SSL_clear(s))
         return -1;