aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/plugin_transport_unix.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index a7cbbf39c..94c160144 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -1315,7 +1315,17 @@ unix_transport_server_start (void *cls)
1315 return GNUNET_SYSERR; 1315 return GNUNET_SYSERR;
1316 } 1316 }
1317 if ('\0' != un->sun_path[0]) 1317 if ('\0' != un->sun_path[0])
1318 GNUNET_DISK_directory_create_for_file (un->sun_path); 1318 {
1319 if (GNUNET_OK != GNUNET_DISK_directory_create_for_file (un->sun_path))
1320 {
1321 LOG (GNUNET_ERROR_TYPE_ERROR, _("Cannot create path to `%s'\n"),
1322 un->sun_path);
1323 GNUNET_NETWORK_socket_close (plugin->unix_sock.desc);
1324 plugin->unix_sock.desc = NULL;
1325 GNUNET_free (un);
1326 return GNUNET_SYSERR;
1327 }
1328 }
1319 if (GNUNET_OK != 1329 if (GNUNET_OK !=
1320 GNUNET_NETWORK_socket_bind (plugin->unix_sock.desc, (const struct sockaddr *) un, un_len)) 1330 GNUNET_NETWORK_socket_bind (plugin->unix_sock.desc, (const struct sockaddr *) un, un_len))
1321 { 1331 {