diff options
-rw-r--r-- | src/netio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/netio.c b/src/netio.c index b8aebea..6ef73d4 100644 --- a/src/netio.c +++ b/src/netio.c @@ -472,7 +472,6 @@ int dropbear_listen(const char* address, const char* port, struct addrinfo hints, *res = NULL, *res0 = NULL; int err; unsigned int nsock; - struct linger linger; int val; int sock; uint16_t *allocated_lport_p = NULL; @@ -551,9 +550,6 @@ int dropbear_listen(const char* address, const char* port, val = 1; /* set to reuse, quick timeout */ setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &val, sizeof(val)); - linger.l_onoff = 1; - linger.l_linger = 5; - setsockopt(sock, SOL_SOCKET, SO_LINGER, (void*)&linger, sizeof(linger)); #if defined(IPPROTO_IPV6) && defined(IPV6_V6ONLY) if (res->ai_family == AF_INET6) { |