From dd016b05706fd7f24b7f5582209103ef3643d8e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 5 Jan 2012 10:21:49 +0000 Subject: [PATCH] Fix for builds without DTLS support. Submitted by: Brian Carlstrom --- ssl/ssl_lib.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.25.1