Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211099
b: refs/heads/master
c: cbdd769
h: refs/heads/master
i:
  211097: 4efff56
  211095: a4dbd72
v: v3
  • Loading branch information
Jiri Olsa authored and David S. Miller committed Sep 22, 2010
1 parent 6f089b6 commit 27fb517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6120b8afacec587f5feb37781bc751bc5d68a10
refs/heads/master: cbdd769ab9de26764bde0520a91536caa1587e13
4 changes: 3 additions & 1 deletion trunk/net/ipv4/netfilter/nf_defrag_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ static unsigned int ipv4_conntrack_defrag(unsigned int hooknum,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
struct sock *sk = skb->sk;
struct inet_sock *inet = inet_sk(skb->sk);

if (inet && inet->nodefrag)
if (sk && (sk->sk_family == PF_INET) &&
inet->nodefrag)
return NF_ACCEPT;

#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
Expand Down

0 comments on commit 27fb517

Please sign in to comment.