diff --git a/net.c b/net.c index 3cc3cdd..69f87d6 100644 --- a/net.c +++ b/net.c @@ -59,6 +59,7 @@ netannounce(int istcp, char *server, int port) } /* set reuse flag for tcp */ + sn = sizeof n; if(istcp && getsockopt(fd, SOL_SOCKET, SO_TYPE, (void*)&n, &sn) >= 0){ n = 1; setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&n, sizeof n);