]> git.ipfire.org Git - thirdparty/openssl.git/commit
BIO_dgram: Fix BIO_CTRL_DGRAM_QUERY_MTU for IPv4-mapped IPv6 addresses
authorNikolas Gauder <nikolas.gauder@tum.de>
Thu, 24 Jul 2025 20:00:49 +0000 (22:00 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 18 Aug 2025 16:06:22 +0000 (18:06 +0200)
commit8adfc5ff0d83910a35c6b1fd243ddaa7b9219df2
treec0dca7addf2fc2f78ed1a39750280901751e23e1
parentf5390d2b86d18cccd937fe23ac5b819405fbd6a6
BIO_dgram: Fix BIO_CTRL_DGRAM_QUERY_MTU for IPv4-mapped IPv6 addresses

Ensure the correct IP header size is subtracted by reusing
dgram_get_mtu_overhead(), which handles address families properly.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28088)

(cherry picked from commit a71b4fae432796a49c3b9d32ae29354b23809c1f)
crypto/bio/bss_dgram.c