Skip to contentSkip to conversation

tcp.c: TCP_LINGER2 small bug

PATCH Applied Arnaldo Carvalho de Melo 2 participants 2 messages May 5, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcp.c: TCP_LINGER2 small bug

Hi,

Please apply.

- Arnaldo

net/ipv4/tcp.c +1 -1
@@ -2352,7 +2352,7 @@
 		break;
 	case TCP_LINGER2:
 		val = tp->linger2;
-		if (val > 0)
+		if (val >= 0)
 			val = (val ? : sysctl_tcp_fin_timeout)/HZ;
 		break;
 	case TCP_DEFER_ACCEPT: