aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/socket.c
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2006-06-17 22:55:35 -0700
committerDavid S. Miller <davem@davemloft.net>2006-06-17 22:55:35 -0700
commit5636bef7324f49e36f05ec8a5f6284e11b1bcca4 (patch)
treeb5e9e42560ba86ffbbd63a582df87844996b6d03 /net/sctp/socket.c
parent[SCTP]: Limit association max_retrans setting in setsockopt. (diff)
downloadlinux-dev-5636bef7324f49e36f05ec8a5f6284e11b1bcca4.tar.xz
linux-dev-5636bef7324f49e36f05ec8a5f6284e11b1bcca4.zip
[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 '')
-rw-r--r--net/sctp/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index b41dcbb89685..b811691c35bf 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -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)))