]> 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:09:00 +0000 (18:09 +0200)
commit7c593bf97ef08b556da81f17c81b2b0e3645ab80
tree9d4f6363f929ac2a34ff02922ef3e4c45eec7b38
parentb43e6a6a75563c29d7478bca55761f27b3e0fd79
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