Don't change the state of the ETM flags until CCS processing
[openssl.git] / ssl / d1_lib.c
index c1d160ecd4306997ac41e45534e9bcb87742c8b1..213fad5a8ded074730b8be42ca6da5180b83fee0 100644 (file)
@@ -937,7 +937,7 @@ size_t DTLS_get_data_mtu(const SSL *s)
                                  &blocksize, &ext_overhead))
         return 0;
 
-    if (SSL_USE_ETM(s))
+    if (SSL_READ_ETM(s))
         ext_overhead += mac_overhead;
     else
         int_overhead += mac_overhead;