aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-21 20:20:33 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-21 20:20:33 +0100
commit647d88d649c267220feb8b5f53ec3e96359a72fc (patch)
treef0e78fbaed43f946b9e49ab42942303697584fa6 /src/transport/plugin_transport_tcp.c
parent0c7478479c31e75392774b17d850c4325e4ff9a8 (diff)
downloadgnunet-647d88d649c267220feb8b5f53ec3e96359a72fc.tar.gz
gnunet-647d88d649c267220feb8b5f53ec3e96359a72fc.zip
fix sun_len issue (#4816) by adding test and fixing typo
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 4ed5b38f7..34bbd00e0 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -549,7 +549,7 @@ add_unixpath (struct sockaddr **saddrs,
549 if (GNUNET_YES == abstract) 549 if (GNUNET_YES == abstract)
550 un->sun_path[0] = '\0'; 550 un->sun_path[0] = '\0';
551#endif 551#endif
552#if HAVE_SOCKADDR_IN_SIN_LEN 552#if HAVE_SOCKADDR_UN_SUN_LEN
553 un->sun_len = (u_char) sizeof (struct sockaddr_un); 553 un->sun_len = (u_char) sizeof (struct sockaddr_un);
554#endif 554#endif
555 *saddrs = (struct sockaddr *) un; 555 *saddrs = (struct sockaddr *) un;