diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-21 20:20:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-21 20:20:33 +0100 |
commit | 647d88d649c267220feb8b5f53ec3e96359a72fc (patch) | |
tree | f0e78fbaed43f946b9e49ab42942303697584fa6 /src/util/connection.c | |
parent | 0c7478479c31e75392774b17d850c4325e4ff9a8 (diff) | |
download | gnunet-647d88d649c267220feb8b5f53ec3e96359a72fc.tar.gz gnunet-647d88d649c267220feb8b5f53ec3e96359a72fc.zip |
fix sun_len issue (#4816) by adding test and fixing typo
Diffstat (limited to 'src/util/connection.c')
-rw-r--r-- | src/util/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/connection.c b/src/util/connection.c index 6d3070415..02dd9f991 100644 --- a/src/util/connection.c +++ b/src/util/connection.c | |||
@@ -902,7 +902,7 @@ GNUNET_CONNECTION_create_from_connect_to_unixpath (const struct GNUNET_CONFIGURA | |||
902 | un->sun_path[0] = '\0'; | 902 | un->sun_path[0] = '\0'; |
903 | } | 903 | } |
904 | #endif | 904 | #endif |
905 | #if HAVE_SOCKADDR_IN_SIN_LEN | 905 | #if HAVE_SOCKADDR_UN_SUN_LEN |
906 | un->sun_len = (u_char) sizeof (struct sockaddr_un); | 906 | un->sun_len = (u_char) sizeof (struct sockaddr_un); |
907 | #endif | 907 | #endif |
908 | connection = GNUNET_new (struct GNUNET_CONNECTION_Handle); | 908 | connection = GNUNET_new (struct GNUNET_CONNECTION_Handle); |
@@ -1012,7 +1012,7 @@ GNUNET_CONNECTION_create_from_sockaddr (int af_family, | |||
1012 | return NULL; | 1012 | return NULL; |
1013 | } | 1013 | } |
1014 | return GNUNET_CONNECTION_connect_socket (s, | 1014 | return GNUNET_CONNECTION_connect_socket (s, |
1015 | serv_addr, | 1015 | serv_addr, |
1016 | addrlen); | 1016 | addrlen); |
1017 | } | 1017 | } |
1018 | 1018 | ||