[PATCH] tcp.c: TCP_LINGER2 small bug

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Fri May 04 2001 - 23:46:48 EDT

  • Next message: David S. Miller: "RE: Problem with PMTU discovery on ICMP packets"

    Hi,

            Please apply.

    - Arnaldo

    --- linux-2.4.4-ac5/net/ipv4/tcp.c Sat May 5 18:24:59 2001
    +++ linux-2.4.4-ac5.acme/net/ipv4/tcp.c Sat May 5 18:33:32 2001
    @@ -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:
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat May 05 2001 - 17:47:30 EDT