diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-06 09:46:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-06 09:46:54 +0000 |
commit | 5ed9232335bafe224acccde336587940a8c6366c (patch) | |
tree | c43c073c581336eec19c77ed751d211da4209830 /src | |
parent | 23e79b0aacc6ec1f7c7780364f5513af939b4298 (diff) | |
download | gnunet-5ed9232335bafe224acccde336587940a8c6366c.tar.gz gnunet-5ed9232335bafe224acccde336587940a8c6366c.zip |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/util/network.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/network.c b/src/util/network.c index 38d9ccb72..2f3ac43b2 100644 --- a/src/util/network.c +++ b/src/util/network.c | |||
@@ -207,10 +207,8 @@ GNUNET_NETWORK_socket_accept (const struct GNUNET_NETWORK_Handle *desc, | |||
207 | struct GNUNET_NETWORK_Handle *ret; | 207 | struct GNUNET_NETWORK_Handle *ret; |
208 | 208 | ||
209 | ret = GNUNET_malloc (sizeof (struct GNUNET_NETWORK_Handle)); | 209 | ret = GNUNET_malloc (sizeof (struct GNUNET_NETWORK_Handle)); |
210 | ret->af = address->sa_family; | ||
211 | /* NOTE: if sa_family does not exist on some platform, | ||
212 | using AF_UNSPEC should be safe */ | ||
213 | ret->fd = accept (desc->fd, address, address_len); | 210 | ret->fd = accept (desc->fd, address, address_len); |
211 | ret->af = address->sa_family; | ||
214 | if (ret->fd == INVALID_SOCKET) | 212 | if (ret->fd == INVALID_SOCKET) |
215 | { | 213 | { |
216 | #ifdef MINGW | 214 | #ifdef MINGW |