The SSL_OP_NO_QUERY_MTU option is supposed to stop the mtu from being
[openssl.git] / ssl / d1_lib.c
index a593c7859e772c83c9fb929136695aa6ee6334c8..d52abf3414dc1d802242ae8186cdda9bff72fd1a 100644 (file)
@@ -453,7 +453,8 @@ int dtls1_check_timeout_num(SSL *s)
        s->d1->timeout.num_alerts++;
 
        /* Reduce MTU after 2 unsuccessful retransmissions */
-       if (s->d1->timeout.num_alerts > 2)
+       if (s->d1->timeout.num_alerts > 2
+                       && !(SSL_get_options(s) & SSL_OP_NO_QUERY_MTU))
                {
                s->d1->mtu = BIO_ctrl(SSL_get_wbio(s), BIO_CTRL_DGRAM_GET_FALLBACK_MTU, 0, NULL);               
                }