mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:25:08 +00:00
Kernel: Use WeakPtr<NetworkAdapter> instead of NetworkAdapter* in net code
This commit is contained in:
parent
d6bce37756
commit
54ceabd48d
9 changed files with 28 additions and 16 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue