X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fdccp%2Fproto.c;h=bd3ecdd67121ba1bcca2490051c6e09d85b51839;hp=e742f90a6858879aa075a0900230abf533eb89d3;hb=0d8a6712456972bbf01275029dfeaa6187d78216;hpb=91e67a996c60a347ad7b918a74efb0f6b3b274c3 diff --git a/net/dccp/proto.c b/net/dccp/proto.c index e742f90a6858..bd3ecdd67121 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c @@ -1012,6 +1012,10 @@ void dccp_close(struct sock *sk, long timeout) __kfree_skb(skb); } + /* If socket has been already reset kill it. */ + if (sk->sk_state == DCCP_CLOSED) + goto adjudge_to_death; + if (data_was_unread) { /* Unread data was tossed, send an appropriate Reset Code */ DCCP_WARN("ABORT with %u bytes unread\n", data_was_unread);