mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
[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:
parent
402d68c433
commit
5636bef732
5 changed files with 16 additions and 6 deletions
|
@ -170,7 +170,8 @@ int sctp_rcv(struct sk_buff *skb)
|
|||
* IP broadcast addresses cannot be used in an SCTP transport
|
||||
* address."
|
||||
*/
|
||||
if (!af->addr_valid(&src, NULL) || !af->addr_valid(&dest, NULL))
|
||||
if (!af->addr_valid(&src, NULL, skb) ||
|
||||
!af->addr_valid(&dest, NULL, skb))
|
||||
goto discard_it;
|
||||
|
||||
asoc = __sctp_rcv_lookup(skb, &src, &dest, &transport);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue