Skip to content

Commit

Permalink
inet: Replace left-over references to inet->cork
Browse files Browse the repository at this point in the history
The patch to replace inet->cork with cork left out two spots in
__ip_append_data that can result in bogus packet construction.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Mar 2, 2011
1 parent 7f6daa6 commit 07df529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ static int __ip_append_data(struct sock *sk, struct sk_buff_head *queue,
struct inet_sock *inet = inet_sk(sk);
struct sk_buff *skb;

struct ip_options *opt = inet->cork.opt;
struct ip_options *opt = cork->opt;
int hh_len;
int exthdrlen;
int mtu;
Expand All @@ -803,7 +803,7 @@ static int __ip_append_data(struct sock *sk, struct sk_buff_head *queue,
exthdrlen = transhdrlen ? rt->dst.header_len : 0;
length += exthdrlen;
transhdrlen += exthdrlen;
mtu = inet->cork.fragsize;
mtu = cork->fragsize;

hh_len = LL_RESERVED_SPACE(rt->dst.dev);

Expand Down

0 comments on commit 07df529

Please sign in to comment.