]> 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:16 +0000 (18:06 +0200)
commit2feb6ebb7dff938336b9117593a7d06a750a6a00
tree6e5ed0039dff4dc77ee2bf6ac8ee24b1bee433fb
parente3e403f8e30e28253eb0eb7fb2d9e75409f7d668
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