[SCTP]: Reject sctp packets with broadcast addresses.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
402d68c433
commit
5636bef732
@@ -172,7 +172,7 @@ static inline int sctp_verify_addr(struct sock *sk, union sctp_addr *addr,
|
||||
return -EINVAL;
|
||||
|
||||
/* Is this a valid SCTP address? */
|
||||
if (!af->addr_valid(addr, sctp_sk(sk)))
|
||||
if (!af->addr_valid(addr, sctp_sk(sk), NULL))
|
||||
return -EINVAL;
|
||||
|
||||
if (!sctp_sk(sk)->pf->send_verify(sctp_sk(sk), (addr)))
|
||||
|
Reference in New Issue
Block a user