aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/output.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-10-17 22:03:28 -0400
committerArnaldo Carvalho de Melo <acme@mandriva.com>2005-10-20 12:49:59 -0400
commit49c5bfaffe8ae6e6440dc4bf78b03800960d93f5 (patch)
treedbd4565b42697a7fdeee8d088f017eb7df8bc594 /net/dccp/output.c
parentffa29347dfbc158d1f47f5925324a6f5713659c1 (diff)
[DCCP]: Clear the IPCB area
Turns out the problem has nothing to do with use-after-free or double-free. It's just that we're not clearing the CB area and DCCP unlike TCP uses a CB format that's incompatible with IP. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Ian McDonald <imcdnzl@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/output.c')
-rw-r--r--net/dccp/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/output.c b/net/dccp/output.c
index 7006549f7050..29250749f16f 100644
--- a/net/dccp/output.c
+++ b/net/dccp/output.c
@@ -100,6 +100,7 @@ int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
100 100
101 DCCP_INC_STATS(DCCP_MIB_OUTSEGS); 101 DCCP_INC_STATS(DCCP_MIB_OUTSEGS);
102 102
103 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt));
103 err = ip_queue_xmit(skb, 0); 104 err = ip_queue_xmit(skb, 0);
104 if (err <= 0) 105 if (err <= 0)
105 return err; 106 return err;