Fix for builds without DTLS support.
authorBodo Möller <bodo@openssl.org>
Thu, 5 Jan 2012 10:21:49 +0000 (10:21 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 5 Jan 2012 10:21:49 +0000 (10:21 +0000)
Submitted by: Brian Carlstrom

ssl/ssl_lib.c

index ac1c92e15adab466fafe81b5131b403315bd29d8..23de3151bf632ce783a6b567d36da620204510e9 100644 (file)
@@ -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)