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_new.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_new.c')
-rw-r--r-- | src/util/service_new.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/service_new.c b/src/util/service_new.c index 00d05dacc..90829c08c 100644 --- a/src/util/service_new.c +++ b/src/util/service_new.c | |||
@@ -519,7 +519,7 @@ add_unixpath (struct sockaddr **saddrs, | |||
519 | if (GNUNET_YES == abstract) | 519 | if (GNUNET_YES == abstract) |
520 | un->sun_path[0] = '\0'; | 520 | un->sun_path[0] = '\0'; |
521 | #endif | 521 | #endif |
522 | #if HAVE_SOCKADDR_IN_SIN_LEN | 522 | #if HAVE_SOCKADDR_UN_SUN_LEN |
523 | un->sun_len = (u_char) sizeof (struct sockaddr_un); | 523 | un->sun_len = (u_char) sizeof (struct sockaddr_un); |
524 | #endif | 524 | #endif |
525 | *saddrs = (struct sockaddr *) un; | 525 | *saddrs = (struct sockaddr *) un; |