Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16811
b: refs/heads/master
c: b59c270
h: refs/heads/master
i:
  16809: eba89d7
  16807: 264b563
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 7, 2006
1 parent 0cda5da commit 2fc13bb
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 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: 5c901daaea3be0d900b3ae1fc9b5f64ff94e4f02
refs/heads/master: b59c270104f03960069596722fea70340579244d
1 change: 1 addition & 0 deletions trunk/net/dccp/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,7 @@ int dccp_v4_destroy_sock(struct sock *sk)
kfree_skb(sk->sk_send_head);
sk->sk_send_head = NULL;
}
nf_reset(skb);

/* Clean up a referenced DCCP bind bucket. */
if (inet_csk(sk)->icsk_bind_hash != NULL)
Expand Down
15 changes: 6 additions & 9 deletions trunk/net/ipv4/ip_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ int ip_call_ra_chain(struct sk_buff *skb)
raw_rcv(last, skb2);
}
last = sk;
nf_reset(skb);
}
}

Expand All @@ -204,10 +203,6 @@ static inline int ip_local_deliver_finish(struct sk_buff *skb)

__skb_pull(skb, ihl);

/* Free reference early: we don't need it any more, and it may
hold ip_conntrack module loaded indefinitely. */
nf_reset(skb);

/* Point into the IP datagram, just past the header. */
skb->h.raw = skb->data;

Expand All @@ -232,10 +227,12 @@ static inline int ip_local_deliver_finish(struct sk_buff *skb)
if ((ipprot = rcu_dereference(inet_protos[hash])) != NULL) {
int ret;

if (!ipprot->no_policy &&
!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) {
kfree_skb(skb);
goto out;
if (!ipprot->no_policy) {
if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) {
kfree_skb(skb);
goto out;
}
nf_reset(skb);
}
ret = ipprot->handler(skb);
if (ret < 0) {
Expand Down
1 change: 1 addition & 0 deletions trunk/net/ipv4/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ int raw_rcv(struct sock *sk, struct sk_buff *skb)
kfree_skb(skb);
return NET_RX_DROP;
}
nf_reset(skb);

skb_push(skb, skb->data - skb->nh.raw);

Expand Down
1 change: 1 addition & 0 deletions trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,7 @@ int tcp_v4_rcv(struct sk_buff *skb)

if (!xfrm4_policy_check(sk, XFRM_POLICY_IN, skb))
goto discard_and_relse;
nf_reset(skb);

if (sk_filter(sk, skb, 0))
goto discard_and_relse;
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,7 @@ static int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
kfree_skb(skb);
return -1;
}
nf_reset(skb);

if (up->encap_type) {
/*
Expand Down Expand Up @@ -1149,6 +1150,7 @@ int udp_rcv(struct sk_buff *skb)

if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb))
goto drop;
nf_reset(skb);

/* No socket. Drop packet silently, if checksum is wrong */
if (udp_checksum_complete(skb))
Expand Down
1 change: 1 addition & 0 deletions trunk/net/sctp/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ int sctp_rcv(struct sk_buff *skb)

if (!xfrm_policy_check(sk, XFRM_POLICY_IN, skb, family))
goto discard_release;
nf_reset(skb);

ret = sk_filter(sk, skb, 1);
if (ret)
Expand Down

0 comments on commit 2fc13bb

Please sign in to comment.