bridge: fix mdb info leaks
authorMathias Krause <minipli@googlemail.com>
Sat, 9 Mar 2013 05:52:19 +0000 (05:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Mar 2013 09:19:25 +0000 (05:19 -0400)
The bridging code discloses heap and stack bytes via the RTM_GETMDB
netlink interface and via the notify messages send to group RTNLGRP_MDB
afer a successful add/del.

Fix both cases by initializing all unset members/padding bytes with
memset(0).

Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found