]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4536. [bug] ISC_SOCKEVENTATTR_USEMINMTU was not being cleared
authorMark Andrews <marka@isc.org>
Tue, 13 Dec 2016 23:42:38 +0000 (10:42 +1100)
committerMark Andrews <marka@isc.org>
Tue, 13 Dec 2016 23:43:41 +0000 (10:43 +1100)
                        when reusing the event structure. [RT #43885]

(cherry picked from commit a678e70481c72e28cf8a2818ef4f7ab5b214a103)

CHANGES
bin/named/client.c

diff --git a/CHANGES b/CHANGES
index 024349ea50909faa286d4875c3447944384dd3d2..95f4cc8515907c89cac6141e6c1b2fa99e94ee14 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+4536.  [bug]           ISC_SOCKEVENTATTR_USEMINMTU was not being cleared
+                       when reusing the event structure. [RT #43885]
+
 4535.  [bug]           Address race condition in setting / testing of
                        DNS_REQUEST_F_SENDING. [RT #43889]
 
index a0341cfab6ebb7c9b9e1817d771992f1c0f2381f..8874b21b81392cacf0aac7984b4148f11a5949e5 100644 (file)
@@ -915,6 +915,7 @@ client_sendpkg(ns_client_t *client, isc_buffer_t *buffer) {
         * MTU link force fragmentation at 1280 if it is a IPv6
         * response.
         */
+       client->sendevent->attributes &= ~ISC_SOCKEVENTATTR_USEMINMTU;
        if (!TCP_CLIENT(client) && r.length > 1432)
                client->sendevent->attributes |= ISC_SOCKEVENTATTR_USEMINMTU;