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 df78447..906fcd4 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)