commit | 6b8d95f1795c42161dc0984b6863e95d6acf24ed | [log] [tgz] |
---|---|---|
author | Willem de Bruijn <willemb@google.com> | Sat Dec 22 16:53:45 2018 -0500 |
committer | David S. Miller <davem@davemloft.net> | Sat Dec 22 15:12:04 2018 -0800 |
tree | 8288508ee59a916d28fe8786dcc93081eea3f1c9 | |
parent | a95386f0390ab602904d11fe6bd7ea5ef9b136f8 [diff] |
packet: validate address length if non-zero Validate packet socket address length if a length is given. Zero length is equivalent to not setting an address. Fixes: 99137b7888f4 ("packet: validate address length") Reported-by: Ido Schimmel <idosch@idosch.org> Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>