]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/dccp/ipv4.c
[DCCP]: Check if already in the CLOSING state in dccp_rcv_closereq
[karo-tx-linux.git] / net / dccp / ipv4.c
index fee9a8c3777b3b8a8a35de2be2b1a6789ac69ce3..2afaa464e7f0912fc812855831d8e7f73f601030 100644 (file)
@@ -641,16 +641,12 @@ int dccp_v4_send_reset(struct sock *sk, enum dccp_reset_codes code)
 
        skb = dccp_make_reset(sk, sk->sk_dst_cache, code);
        if (skb != NULL) {
-               const struct dccp_sock *dp = dccp_sk(sk);
                const struct inet_sock *inet = inet_sk(sk);
 
                err = ip_build_and_send_pkt(skb, sk,
                                            inet->saddr, inet->daddr, NULL);
                if (err == NET_XMIT_CN)
                        err = 0;
-
-               ccid_hc_rx_exit(dp->dccps_hc_rx_ccid, sk);
-               ccid_hc_tx_exit(dp->dccps_hc_tx_ccid, sk);
        }
 
        return err;