Merge branch '553-socket-c-2171-unexpected-error-v9_12' into 'v9_12'

Only set IPV6_USE_MIN_MTU on IPv6.

See merge request isc-projects/bind9!928
This commit is contained in:
Mark Andrews
2018-10-29 02:39:18 -04:00
2 changed files with 3 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
5065. [bug] Only set IPV6_USE_MIN_MTU on IPv6. [GL #553]
5064. [test] Initalize TZ environment variable before calling
dns_test_begin in dnstap_test. [GL #624]

View File

@@ -1573,7 +1573,7 @@ build_msghdr_send(isc__socket_t *sock, char* cmsgbuf, isc_socketevent_t *dev,
#endif
#if defined(IPV6_USE_MIN_MTU)
if ((sock->type == isc_sockettype_udp) &&
if ((sock->type == isc_sockettype_udp) && (sock->pf == AF_INET6) &&
((dev->attributes & ISC_SOCKEVENTATTR_USEMINMTU) != 0))
{
int use_min_mtu = 1; /* -1, 0, 1 */