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/service.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/service.c')
-rw-r--r-- | src/util/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/service.c b/src/util/service.c index 3beb4a085..11128425d 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -481,7 +481,7 @@ add_unixpath (struct sockaddr **saddrs, | |||
481 | if (GNUNET_YES == abstract) | 481 | if (GNUNET_YES == abstract) |
482 | un->sun_path[0] = '\0'; | 482 | un->sun_path[0] = '\0'; |
483 | #endif | 483 | #endif |
484 | #if HAVE_SOCKADDR_IN_SIN_LEN | 484 | #if HAVE_SOCKADDR_UN_SUN_LEN |
485 | un->sun_len = (u_char) sizeof (struct sockaddr_un); | 485 | un->sun_len = (u_char) sizeof (struct sockaddr_un); |
486 | #endif | 486 | #endif |
487 | *saddrs = (struct sockaddr *) un; | 487 | *saddrs = (struct sockaddr *) un; |