mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
Kernel: Use WeakPtr<NetworkAdapter> instead of NetworkAdapter* in net code
This commit is contained in:
committed by
Andreas Kling
parent
d6bce37756
commit
54ceabd48d
@@ -169,7 +169,7 @@ ssize_t IPv4Socket::sendto(FileDescription&, const void* data, size_t data_lengt
|
||||
m_peer_port = ntohs(ia.sin_port);
|
||||
}
|
||||
|
||||
auto* adapter = adapter_for_route_to(m_peer_address);
|
||||
auto adapter = adapter_for_route_to(m_peer_address);
|
||||
if (!adapter)
|
||||
return -EHOSTUNREACH;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user