Commit 942355c1 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

sockets: Nitpick for dgram dumping

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 054bf4ad
......@@ -131,6 +131,10 @@ static int can_dump_unix_sk(struct unix_sk_desc *sk)
}
break;
case TCP_CLOSE:
if (sk->type != SOCK_DGRAM)
return 0;
break;
default:
pr_err("Unknown state %d\n", sk->state);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment