The SSL_OP_NO_QUERY_MTU option is supposed to stop the mtu from being
[openssl.git] / ssl / d1_lib.c
index 9f8b33b1931bb0076c9a0d3ec6a09f56a2d99596..2f696c52d810e9384d2ad76c00e025f5278c2440 100644 (file)
@@ -406,7 +406,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);               
                }