mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-31 04:44:13 +00:00
Fix #270.
This commit is contained in:
parent
36c77080b6
commit
65252790e6
@ -608,7 +608,7 @@ namespace net {
|
|||||||
LPSOCKADDR lpAddr = pUnicast->Address.lpSockaddr;
|
LPSOCKADDR lpAddr = pUnicast->Address.lpSockaddr;
|
||||||
sockaddr_in* localInterfaceAddress = (sockaddr_in*) lpAddr;
|
sockaddr_in* localInterfaceAddress = (sockaddr_in*) lpAddr;
|
||||||
if(localInterfaceAddress->sin_addr.S_un.S_addr == inputAddress.sin_addr.S_un.S_addr) {
|
if(localInterfaceAddress->sin_addr.S_un.S_addr == inputAddress.sin_addr.S_un.S_addr) {
|
||||||
result = pAddresses->Mtu;
|
auto result = pAddresses->Mtu;
|
||||||
FREE(pAddresses);
|
FREE(pAddresses);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -670,7 +670,7 @@ namespace net {
|
|||||||
found_address = true;
|
found_address = true;
|
||||||
}
|
}
|
||||||
} if (found_address) {
|
} if (found_address) {
|
||||||
result = pAddresses->Mtu;
|
auto result = pAddresses->Mtu;
|
||||||
FREE(pAddresses);
|
FREE(pAddresses);
|
||||||
pAddresses = nullptr;
|
pAddresses = nullptr;
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user