]> err.no Git - linux-2.6/commit
[IPSEC]: Check x->encap before dereferencing it
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Apr 2006 19:51:05 +0000 (12:51 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 10 Apr 2006 05:25:22 +0000 (22:25 -0700)
commit8bf4b8a1083694d5aac292f92705ddd3aec29be6
treea8bbf0bb32b7e286659eae12326c54671430560f
parent67644726317a8274be4a3d0ef85b9ccebaa90304
[IPSEC]: Check x->encap before dereferencing it

We need to dereference x->encap before dereferencing it for encap_type.
If it's absent then the encap_type is zero.

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