aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-04-07 14:23:16 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-04-07 14:23:16 +0000
commit08bda445f0dd078d712c462d4809f26131da3272 (patch)
treef05b021d8989aa7dd75b4c52312cac403b7e58f3 /src/transport
parent2136ee822810c9d7453242f98371abaa6ba5d7d1 (diff)
downloadgnunet-08bda445f0dd078d712c462d4809f26131da3272.tar.gz
gnunet-08bda445f0dd078d712c462d4809f26131da3272.zip
fix for unchecked return value
Diffstat (limited to 'src/transport')
-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 {