diff options
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 223abaa72bc5..00840474a449 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -989,6 +989,7 @@ static int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb) | |||
989 | kfree_skb(skb); | 989 | kfree_skb(skb); |
990 | return -1; | 990 | return -1; |
991 | } | 991 | } |
992 | nf_reset(skb); | ||
992 | 993 | ||
993 | if (up->encap_type) { | 994 | if (up->encap_type) { |
994 | /* | 995 | /* |
@@ -1149,6 +1150,7 @@ int udp_rcv(struct sk_buff *skb) | |||
1149 | 1150 | ||
1150 | if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) | 1151 | if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) |
1151 | goto drop; | 1152 | goto drop; |
1153 | nf_reset(skb); | ||
1152 | 1154 | ||
1153 | /* No socket. Drop packet silently, if checksum is wrong */ | 1155 | /* No socket. Drop packet silently, if checksum is wrong */ |
1154 | if (udp_checksum_complete(skb)) | 1156 | if (udp_checksum_complete(skb)) |