diff options
Diffstat (limited to 'net/ipv4/ip_input.c')
| -rw-r--r-- | net/ipv4/ip_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index c9026dbf4c93..212734ca238f 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
| @@ -121,7 +121,6 @@ | |||
| 121 | #include <linux/kernel.h> | 121 | #include <linux/kernel.h> |
| 122 | #include <linux/string.h> | 122 | #include <linux/string.h> |
| 123 | #include <linux/errno.h> | 123 | #include <linux/errno.h> |
| 124 | #include <linux/config.h> | ||
| 125 | 124 | ||
| 126 | #include <linux/net.h> | 125 | #include <linux/net.h> |
| 127 | #include <linux/socket.h> | 126 | #include <linux/socket.h> |
| @@ -429,6 +428,9 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, | |||
| 429 | goto drop; | 428 | goto drop; |
| 430 | } | 429 | } |
| 431 | 430 | ||
| 431 | /* Remove any debris in the socket control block */ | ||
| 432 | memset(IPCB(skb), 0, sizeof(struct inet_skb_parm)); | ||
| 433 | |||
| 432 | return NF_HOOK(PF_INET, NF_IP_PRE_ROUTING, skb, dev, NULL, | 434 | return NF_HOOK(PF_INET, NF_IP_PRE_ROUTING, skb, dev, NULL, |
| 433 | ip_rcv_finish); | 435 | ip_rcv_finish); |
| 434 | 436 | ||
