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:
Christian Prochaska 2013-04-30 19:24:22 +02:00 committed by Norman Feske
parent cc5fddb0a2
commit b8d690b9aa

View File

@ -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;
}