mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2026-10-27 14:39:58 +00:00
Fix uninitialized sin_family field returned from CheckWANAccess()
This commit is contained in:
1 parent
dee2daac5a
commit
bbf16383f5
1 file changed
+2
@@ -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