X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_connection_timeout.c;h=c1d9c4c4d4b36b6ff05cf6bdfd2a889ef4c464da;hb=555214089c7045298f23fea9e060ea931804e75f;hp=0590d36d5fe20746887c2a9757086e60845b55c0;hpb=652e89b59ed2207c2c12172fdabcd6e659995c81;p=oweals%2Fgnunet.git diff --git a/src/util/test_connection_timeout.c b/src/util/test_connection_timeout.c index 0590d36d5..c1d9c4c4d 100644 --- a/src/util/test_connection_timeout.c +++ b/src/util/test_connection_timeout.c @@ -56,6 +56,7 @@ open_listen_socket () #if HAVE_SOCKADDR_IN_SIN_LEN sa.sin_len = sizeof (sa); #endif + sa.sin_family = AF_INET; sa.sin_port = htons (PORT); desc = GNUNET_NETWORK_socket_create (AF_INET, SOCK_STREAM, 0); GNUNET_assert (desc != NULL); @@ -82,8 +83,8 @@ send_kilo (void *cls, size_t size, void *buf) #endif GNUNET_assert (buf == NULL); *ok = 0; - GNUNET_CONNECTION_destroy (lsock); - GNUNET_CONNECTION_destroy (csock); + GNUNET_CONNECTION_destroy (lsock, GNUNET_YES); + GNUNET_CONNECTION_destroy (csock, GNUNET_YES); return 0; } #if VERBOSE