atm: fix info leak in getsockopt(SO_ATMPVC)
commit e862f1a9 upstream. 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> [bwh: Backported to 2.6.32: adjust context, indentation] Signed-off-by: Willy Tarreau <w@1wt.eu>
Showing
Please register or sign in to comment