]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm6: Properly handle unsupported protocols
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 29 Apr 2014 06:23:03 +0000 (08:23 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 6 May 2014 05:08:38 +0000 (07:08 +0200)
commitc91b9d8c484578b1e444a42e7ed6a440a8fbe632
tree39db92cbd4f20dab09131f732937c8093d00bc48
parent0e3f154cb568acc0b849d54d35d8b352f33ee1cc
xfrm6: Properly handle unsupported protocols

We don't catch the case if an unsupported protocol is submitted
to the xfrm6 protocol handlers, this can lead to NULL pointer
dereferences. Fix this by adding the appropriate checks.

Fixes: a590d879 ("xfrm6: Add IPsec protocol multiplexer")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/xfrm6_protocol.c