projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[oweals/gnunet.git]
/
src
/
util
/
network.c
diff --git
a/src/util/network.c
b/src/util/network.c
index 0b41680343486cc1553be18ea2a2f6807437a568..8ec365269dd5b003ffce0a9407b19edaf4a20c8d 100644
(file)
--- a/
src/util/network.c
+++ b/
src/util/network.c
@@
-226,7
+226,10
@@
GNUNET_NETWORK_socket_accept (const struct GNUNET_NETWORK_Handle *desc,
#ifdef DARWIN
socket_set_nosigpipe (ret);
#endif
#ifdef DARWIN
socket_set_nosigpipe (ret);
#endif
- socket_set_nodelay (ret);
+#ifdef AF_UNIX
+ if (address->sa_family != AF_UNIX)
+#endif
+ socket_set_nodelay (ret);
return ret;
}
return ret;
}
@@
-590,7
+593,11
@@
GNUNET_NETWORK_socket_create (int domain, int type, int protocol)
#ifdef DARWIN
socket_set_nosigpipe (ret);
#endif
#ifdef DARWIN
socket_set_nosigpipe (ret);
#endif
- if (type == SOCK_STREAM)
+ if ( (type == SOCK_STREAM)
+#ifdef AF_UNIX
+ && (domain != AF_UNIX)
+#endif
+ )
socket_set_nodelay (ret);
return ret;
}
socket_set_nodelay (ret);
return ret;
}