summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2025-02-13 14:59:13 +0100
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-02-25 13:37:44 +0100
commitae8756c10caf4ac6ab35c2f356c0de92bcd6e775 (patch)
tree6add2a6174c44e6d47e7a579167956f596e02984
parent2e0038f5b0035fdd4bc9f7678889ff5647545088 (diff)
downloadmullvadvpn-ae8756c10caf4ac6ab35c2f356c0de92bcd6e775.tar.xz
mullvadvpn-ae8756c10caf4ac6ab35c2f356c0de92bcd6e775.zip
Add safety comment in talpid_routing::windows::route_manager
-rw-r--r--talpid-routing/src/windows/route_manager.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/talpid-routing/src/windows/route_manager.rs b/talpid-routing/src/windows/route_manager.rs
index e8806dce3d..5cfc4b72e7 100644
--- a/talpid-routing/src/windows/route_manager.rs
+++ b/talpid-routing/src/windows/route_manager.rs
@@ -600,6 +600,7 @@ fn interface_luid_from_gateway(gateway: &SOCKADDR_INET) -> Result<NET_LUID_LH> {
unsafe fn get_first_gateway_address_reference(
adapter: &IP_ADAPTER_ADDRESSES_LH,
) -> &IP_ADAPTER_GATEWAY_ADDRESS_LH {
+ // SAFETY: See function docs
unsafe { &*adapter.FirstGatewayAddress }
}