The SSL_OP_NO_QUERY_MTU option is supposed to stop the mtu from being
[openssl.git] / ssl / d1_lib.c
index ab8730c8838b11735a3f96e68adc74f2af3b23cd..09268b87903e341055e2ccf03080364705962a93 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);               
                }