diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2006-06-18 01:55:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-06-18 01:55:35 -0400 |
commit | 5636bef7324f49e36f05ec8a5f6284e11b1bcca4 (patch) | |
tree | b5e9e42560ba86ffbbd63a582df87844996b6d03 /net/sctp/input.c | |
parent | 402d68c43326d2f0e7e2e9a9013cd4c098d9b87c (diff) |
[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>
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 1662f9cc869e..70d6606e2812 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -170,7 +170,8 @@ int sctp_rcv(struct sk_buff *skb) | |||
170 | * IP broadcast addresses cannot be used in an SCTP transport | 170 | * IP broadcast addresses cannot be used in an SCTP transport |
171 | * address." | 171 | * address." |
172 | */ | 172 | */ |
173 | if (!af->addr_valid(&src, NULL) || !af->addr_valid(&dest, NULL)) | 173 | if (!af->addr_valid(&src, NULL, skb) || |
174 | !af->addr_valid(&dest, NULL, skb)) | ||
174 | goto discard_it; | 175 | goto discard_it; |
175 | 176 | ||
176 | asoc = __sctp_rcv_lookup(skb, &src, &dest, &transport); | 177 | asoc = __sctp_rcv_lookup(skb, &src, &dest, &transport); |