summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGuillaume Chazarain <guichaz@yahoo.fr>2006-07-24 23:45:16 -0700
committerDavid S. Miller <davem@davemloft.net>2006-07-24 23:45:16 -0700
commitd569f1d72f068992d07ab17f7ff9aea7f0d97cdb (patch)
tree6d24edf58c3215430d98870e8a3ff197e49cf47d /net
parent6b7fdc3ae18a0598a999156b62d55ea55220e00f (diff)
downloadlinux-stable-d569f1d72f068992d07ab17f7ff9aea7f0d97cdb.tar.gz
linux-stable-d569f1d72f068992d07ab17f7ff9aea7f0d97cdb.tar.bz2
linux-stable-d569f1d72f068992d07ab17f7ff9aea7f0d97cdb.zip
[IPV4]: Clear the whole IPCB, this clears also IPCB(skb)->flags.
Signed-off-by: Guillaume Chazarain <guichaz@yahoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/ip_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
index 184c78ca79e6..212734ca238f 100644
--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -429,7 +429,7 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
}
/* Remove any debris in the socket control block */
- memset(&(IPCB(skb)->opt), 0, sizeof(struct ip_options));
+ memset(IPCB(skb), 0, sizeof(struct inet_skb_parm));
return NF_HOOK(PF_INET, NF_IP_PRE_ROUTING, skb, dev, NULL,
ip_rcv_finish);