precheck for UDS

This commit is contained in:
Florian Dold 2016-04-25 20:25:05 +02:00
parent 57728835cf
commit edd704fa73

View File

@ -755,6 +755,8 @@ main (int argc,
un->sun_family = AF_UNIX;
strncpy (un->sun_path, serve_unixpath, sizeof (un->sun_path) - 1);
GNUNET_NETWORK_unix_precheck (un);
if (NULL == (nh = GNUNET_NETWORK_socket_create (AF_UNIX, SOCK_STREAM, 0)))
{
fprintf (stderr, "create failed for AF_UNIX\n");