Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (6 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/net/ipv4/tcp_timer.c

    r25370 r31869  
    208208        sk_mem_reclaim_partial(sk);
    209209
    210         if (sk->sk_state == TCP_CLOSE || !(icsk->icsk_ack.pending & ICSK_ACK_TIMER))
     210        if (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) ||
     211            !(icsk->icsk_ack.pending & ICSK_ACK_TIMER))
    211212                goto out;
    212213
     
    487488        int event;
    488489
    489         if (sk->sk_state == TCP_CLOSE || !icsk->icsk_pending)
     490        if (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) ||
     491            !icsk->icsk_pending)
    490492                goto out;
    491493
Note: See TracChangeset for help on using the changeset viewer.