mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 16:35:28 +00:00
libc_lwip: accept 'AF_INET' sockets only
lwIP only supports the 'AF_INET' domain, but doesn't check the 'domain' argument of the 'lwip_socket()' function. This patch avoids an error message from lwIP when the Arora browser tries to connect a socket of the 'AF_LOCAL' domain. Fixes #732.
This commit is contained in:
parent
cc5fddb0a2
commit
b8d690b9aa
@ -260,9 +260,12 @@ bool Plugin::supports_select(int nfds,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Plugin::supports_socket(int, int, int)
|
bool Plugin::supports_socket(int domain, int, int)
|
||||||
{
|
{
|
||||||
return true;
|
if (domain == AF_INET)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user