unix: If we happen to find peer NULL when diag dumping, write zero.
authorDavid S. Miller <davem@davemloft.net>
Mon, 26 Dec 2011 19:41:55 +0000 (14:41 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Dec 2011 19:41:55 +0000 (14:41 -0500)
commite09e9d189bc2d31dc365a3d846a09086317350b6
treef0ef78c8b75cde8210ee5832d8b4c82c466c46f1
parent3b0723c12e825e26aa5fc0c6970108425824b51d
unix: If we happen to find peer NULL when diag dumping, write zero.

Otherwise we leave uninitialized kernel memory in there.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/diag.c