[IPCOMP]: Fetch nexthdr before ipch is destroyed
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 Jan 2008 05:11:46 +0000 (21:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:11 +0000 (19:27 -0800)
When I moved the nexthdr setting out of IPComp I accidently moved
the reading of ipch->nexthdr after the decompression.  Unfortunately
this means that we'd be reading from a stale ipch pointer which
doesn't work very well.

This patch moves the reading up so that we get the correct nexthdr
value.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found