]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
atm: fix info leak via getsockname()
authorMathias Krause <minipli@googlemail.com>
Wed, 15 Aug 2012 11:31:45 +0000 (11:31 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:04:50 +0000 (15:04 +0100)
commit86cbb1ef4f7b1e6ac6cb65bb34b6949cd5b90c6e
tree0e5d7ba1c71067a9a33a8721cbcb21dd6aeebcc3
parent3d9e0c7f9adf3b5bbdc257d4c70ead09947cc304
atm: fix info leak via getsockname()

[ Upstream commit 3c0c5cfdcd4d69ffc4b9c0907cec99039f30a50a ]

The ATM code fails to initialize the two padding bytes of struct
sockaddr_atmpvc inserted for alignment. Add an explicit memset(0)
before filling the structure to avoid the info leak.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/atm/pvc.c