check_permissions for AF_UNIX

This commit is contained in:
Florian Dold 2016-04-26 14:16:35 +02:00
parent bf0ee981ff
commit ad40c23390

View File

@ -54,6 +54,9 @@ check_permissions (struct MHD_Connection *connection)
addr = ci->client_addr;
switch (addr->sa_family)
{
case AF_UNIX:
/* We rely on file system permissions here */
return GNUNET_YES;
case AF_INET:
{
const struct sockaddr_in *sin = (const struct sockaddr_in *) addr;