mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2026-06-18 14:41:04 +00:00
Fix uninitialized sin_family field returned from CheckWANAccess()
This commit is contained in:
@@ -607,6 +607,8 @@ bool CheckWANAccess(PSOCKADDR_IN wanAddr, PSOCKADDR_IN reportedWanAddr, bool* fo
|
|||||||
natpmp_t natpmp;
|
natpmp_t natpmp;
|
||||||
bool foundUpnpIgd = false;
|
bool foundUpnpIgd = false;
|
||||||
|
|
||||||
|
wanAddr->sin_family = AF_INET;
|
||||||
|
reportedWanAddr->sin_family = AF_INET;
|
||||||
*foundPortForwardingRules = false;
|
*foundPortForwardingRules = false;
|
||||||
*igdDisconnected = false;
|
*igdDisconnected = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user