diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index ac1c92e15a..23de3151bf 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1000,8 +1000,10 @@ long SSL_ctrl(SSL *s,int cmd,long larg,void *parg) s->max_cert_list=larg; return(l); case SSL_CTRL_SET_MTU: +#ifndef OPENSSL_NO_DTLS1 if (larg < (long)dtls1_min_mtu()) return 0; +#endif if (SSL_version(s) == DTLS1_VERSION || SSL_version(s) == DTLS1_BAD_VER)