aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r--src/transport/plugin_transport_unix.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index e48606f8f..a7cbbf39c 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -1672,9 +1672,15 @@ libgnunet_plugin_transport_unix_init (void *cls)
1672 api->get_network = &unix_get_network; 1672 api->get_network = &unix_get_network;
1673 api->update_session_timeout = &unix_plugin_update_session_timeout; 1673 api->update_session_timeout = &unix_plugin_update_session_timeout;
1674 sockets_created = unix_transport_server_start (plugin); 1674 sockets_created = unix_transport_server_start (plugin);
1675 if (0 == sockets_created) 1675 if ((0 == sockets_created) || (GNUNET_SYSERR == sockets_created))
1676 {
1676 LOG (GNUNET_ERROR_TYPE_WARNING, 1677 LOG (GNUNET_ERROR_TYPE_WARNING,
1677 _("Failed to open UNIX listen socket\n")); 1678 _("Failed to open UNIX listen socket\n"));
1679 GNUNET_free (api);
1680 GNUNET_free (plugin->unix_socket_path);
1681 GNUNET_free (plugin);
1682 return NULL;
1683 }
1678 plugin->session_map = GNUNET_CONTAINER_multipeermap_create (10, GNUNET_NO); 1684 plugin->session_map = GNUNET_CONTAINER_multipeermap_create (10, GNUNET_NO);
1679 plugin->address_update_task = GNUNET_SCHEDULER_add_now (&address_notification, plugin); 1685 plugin->address_update_task = GNUNET_SCHEDULER_add_now (&address_notification, plugin);
1680 return api; 1686 return api;