From: Guus Sliepen Date: Sun, 16 Jan 2022 19:45:41 +0000 (+0100) Subject: Fix potential crash during failing PMTU discovery. X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;ds=sidebyside;h=0912276c6467aa3ee6f570b31245367319da572a;hp=0912276c6467aa3ee6f570b31245367319da572a;p=tinc Fix potential crash during failing PMTU discovery. If we get PACKET_TOO_BIG responses when sending UDP packets, we lower the maximum MTU we will probe accordingly. However, after enough of those responses, maxmtu could drop below zero and wrap. Guard against that by never dropping maxmtu below the minimum required MTU for UDP communication. ---