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

ssl/ssl_lib.c

index df784479aab4d7a359551b5faa88015198dfc9d0..906fcd44117e018774f7a88c2258c5e85339eba3 100644 (file)
@@ -1081,8 +1081,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)