diff options
Diffstat (limited to 'src/util/connection.c')
-rw-r--r-- | src/util/connection.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/connection.c b/src/util/connection.c index 39dad12c3..fb20617fd 100644 --- a/src/util/connection.c +++ b/src/util/connection.c | |||
@@ -832,6 +832,16 @@ GNUNET_CONNECTION_create_from_connect_to_unixpath (const struct | |||
832 | un = GNUNET_new (struct sockaddr_un); | 832 | un = GNUNET_new (struct sockaddr_un); |
833 | un->sun_family = AF_UNIX; | 833 | un->sun_family = AF_UNIX; |
834 | strncpy (un->sun_path, unixpath, sizeof (un->sun_path) - 1); | 834 | strncpy (un->sun_path, unixpath, sizeof (un->sun_path) - 1); |
835 | #ifdef LINUX | ||
836 | { | ||
837 | int abstract; | ||
838 | |||
839 | abstract = GNUNET_CONFIGURATION_get_value_yesno (cfg, "TESTING", | ||
840 | "USE_ABSTRACT_SOCKETS"); | ||
841 | if (GNUNET_YES == abstract) | ||
842 | un->sun_path[0] = '\0'; | ||
843 | } | ||
844 | #endif | ||
835 | #if HAVE_SOCKADDR_IN_SIN_LEN | 845 | #if HAVE_SOCKADDR_IN_SIN_LEN |
836 | un->sun_len = (u_char) sizeof (struct sockaddr_un); | 846 | un->sun_len = (u_char) sizeof (struct sockaddr_un); |
837 | #endif | 847 | #endif |