Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106669
b: refs/heads/master
c: 860239c
h: refs/heads/master
i:
  106667: 8e01b95
v: v3
  • Loading branch information
Wei Yongjun authored and Gerrit Renker committed Jul 26, 2008
1 parent 59a5fce commit ba0c9bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18e1d836002ad970f42736bad09b7be9cfe99545
refs/heads/master: 860239c56bbc7c830bdbcec93b140f22a5a5219b
6 changes: 6 additions & 0 deletions trunk/net/dccp/ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
__u64 seq;
struct net *net = dev_net(skb->dev);

if (skb->len < offset + sizeof(*dh) ||
skb->len < offset + __dccp_basic_hdr_len(dh)) {
ICMP6_INC_STATS_BH(__in6_dev_get(skb->dev), ICMP6_MIB_INERRORS);
return;
}

sk = inet6_lookup(net, &dccp_hashinfo,
&hdr->daddr, dh->dccph_dport,
&hdr->saddr, dh->dccph_sport, inet6_iif(skb));
Expand Down

0 comments on commit ba0c9bf

Please sign in to comment.