From 2bde6fc13b9a94f72dcbeeb0b73aca948dcb6a22 Mon Sep 17 00:00:00 2001 From: EinMByte Date: Fri, 24 Jul 2015 14:43:51 +0200 Subject: [PATCH] Fixes to GetMTUWindows and GetMTUWindowsIpv6 (thanks mlt). --- util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.cpp b/util.cpp index e9a9b5e9..39312acb 100644 --- a/util.cpp +++ b/util.cpp @@ -562,7 +562,7 @@ namespace net { return fallback; } - int GetMTUWindowsIpv6(sockaddr_in inputAddress, int fallback) + int GetMTUWindowsIpv6(sockaddr_in6 inputAddress, int fallback) { ULONG outBufLen = 0; PIP_ADAPTER_ADDRESSES pAddresses = nullptr; @@ -645,7 +645,7 @@ namespace net { return GetMTUWindowsIpv6(inputAddress, fallback); } else { LogPrint(eLogError, "GetMTU() has failed: address family is not supported"); - return result; + return fallback; } }